Git Product home page Git Product logo

actionbarapi's Introduction

actionbarapi's People

Contributors

connorlinfoot avatar cosmoconsole avatar dyprex avatar mikroskeem avatar webbeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

actionbarapi's Issues

not works

hi, i'm trying to use your plugin to make dynamic players' HP updates. when i create simplest event on players join, your mod returns exception. why?

My listener

My log

Compatibility issue with Denizen

Had this issue until I removed Denizen.
Error:

2015-12-29 08:21:32 | [WARN] java.lang.NoSuchMethodException: net.aufdemrand.denizen.utilities.packets.intercept.DenizenPacketListener.sendPacket(net.minecraft.server.v1_8_R3.Packet)
2015-12-29 08:21:32 | [WARN] at java.lang.Class.getDeclaredMethod(Class.java:2130)
2015-12-29 08:21:32 | [WARN] at com.connorlinfoot.actionbarapi.ActionBarAPI.sendActionBar(ActionBarAPI.java:63)
2015-12-29 08:21:32 | [WARN] at com.connorlinfoot.actionbarapi.ActionBarAPI$1.run(ActionBarAPI.java:79)
2015-12-29 08:21:32 | [WARN] at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
2015-12-29 08:21:32 | [WARN] at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
2015-12-29 08:21:32 | [WARN] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723)
2015-12-29 08:21:32 | [WARN] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
2015-12-29 08:21:32 | [WARN] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
2015-12-29 08:21:32 | [WARN] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
2015-12-29 08:21:32 | [WARN] at java.lang.Thread.run(Thread.java:745)

Messages in quick succession with duration >3 seconds

When the API method with duration above 3 seconds is called multiple times before the timer expires, the plugin's scheduled task to keep the message up for long enough will keep replacing the message even after a different one has been requested.

Suggested fix would be to store the task IDs for each player (player UUID), and cancel the tasks if a new message is requested.

ActionBar`s duration

Hello! Please help me with ActionBars duration. How I can set ActionBars duration in infinity?

Actionbar flashing

When used in a bukkit schedule timer the action bar will flash instead of staying solid however when used in command it works fine (1.10)

Colored text?

It appears it is not possible to color text using this api but I have seen other plugins do it. Is that possible to add?

Removing the actionbar

So I have an actionbar with
ActionBarAPI.sendActionBar(p, ChatColor.GREEN + "You are now invisible to players!");

But how would I cancel this actionbar and remove the active actionbar?
Doing something like
ActionBarAPI.sendActionBar(p, "");
Didn't work, the actionbar just disappears for 3 seconds and the old actionbar comes back.

Whitespaces ...

Its not possible to add whitespaces in the messages as I explored. Could you fix that ?

java.lang.NoSuchMethodException

[14:52:29] [Server thread/WARN]: java.lang.NoSuchMethodException: net.minecraft.server.v1_16_R1.PacketPlayOutChat.(net.minecraft.server.v1_16_R1.IChatBaseComponent, net.minecraft.server.v1_16_R1.ChatMessageType)
[14:52:29] [Server thread/WARN]: at java.lang.Class.getConstructor0(Unknown Source)
[14:52:29] [Server thread/WARN]: at java.lang.Class.getConstructor(Unknown Source)
[14:52:29] [Server thread/WARN]: at com.connorlinfoot.actionbarapi.ActionBarAPI.sendActionBar(ActionBarAPI.java:79)
[14:52:29] [Server thread/WARN]: at me.dayton.ActionBar.Events.PlayerMove.onPlayerMove(PlayerMove.java:15)
[14:52:29] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[14:52:29] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[14:52:29] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[14:52:29] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Unknown Source)
[14:52:29] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315)
[14:52:29] [Server thread/WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[14:52:29] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589)
[14:52:29] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.PlayerConnection.a(PlayerConnection.java:1010)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.PacketPlayInFlying.a(SourceFile:122)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.PacketPlayInFlying$PacketPlayInPosition.a(SourceFile:56)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.TickTask.run(SourceFile:18)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeTask(SourceFile:144)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeNext(SourceFile:118)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.MinecraftServer.aZ(MinecraftServer.java:941)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.MinecraftServer.executeNext(MinecraftServer.java:934)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.MinecraftServer.sleepForTick(MinecraftServer.java:918)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:850)
[14:52:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$0(MinecraftServer.java:164)
[14:52:29] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)

Update to 1.15

I was just wondering if you plan on updating the plugin to 1.15 any time soon as I'd like to upgrade my server to 1.15.
Thank you!

Generated an exception

I use Paper-Spigot 1.14.4 Bungeecord server with plugin version 1.5.4

[14:39:10] [Craft Scheduler Thread - 9/WARN]: [ActionBarAPI] Plugin ActionBarAPI v1.5.4 generated an exception while executing task 30 java.lang.NullPointerException: null at java.io.StringReader.<init>(StringReader.java:50) ~[?:1.8.0_242] at org.json.simple.parser.JSONParser.parse(JSONParser.java:79) ~[paper-1.14.4.jar:git-Paper-219] at org.json.simple.parser.JSONParser.parse(JSONParser.java:75) ~[paper-1.14.4.jar:git-Paper-219] at com.connorlinfoot.actionbarapi.CLUpdate.doCheck(CLUpdate.java:55) ~[?:?] at com.connorlinfoot.actionbarapi.CLUpdate.access$000(CLUpdate.java:20) ~[?:?] at com.connorlinfoot.actionbarapi.CLUpdate$1.run(CLUpdate.java:40) ~[?:?] at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[paper-1.14.4.jar:git-Paper-219] at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[paper-1.14.4.jar:git-Paper-219] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.14.4.jar:git-Paper-219] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]

Full latest.log: https://pastebin.com/2caQtJgb

Maven build failed

I used the API in IntelliJ and it worked fine. However, when I went to build the project with maven, I got an error:
Error:(3,38) java: package com.connorlinfoot.actionbarapi does not exist
Is there something that I am doing wrong, and do I need to add something to my pom.xml?
My plugin.yml also contains depends: ActionBarAPI

Spigot 1.15.1 support?

Yes, I am that guy, asking the obvious perhaps.

We're going through a list of API that we use and this is the last one at the moment that we're not certain about if it has support for Spigot 1.15.1. From what I (try to) understand this has NMS stuff in it, so it's likely this has changed between 1.14 and 1.15.

java.lang.ClassNotFoundException

[16:21:42 WARN]: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.null.entity.CraftPlayer [16:21:42 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) [16:21:42 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) [16:21:42 WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [16:21:42 WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [16:21:42 WARN]: at java.lang.Class.forName0(Native Method) [16:21:42 WARN]: at java.lang.Class.forName(Class.java:264) [16:21:42 WARN]: at com.connorlinfoot.actionbarapi.ActionBarAPI.sendActionBar(ActionBarAPI.java:55) [16:21:42 WARN]: at com.Kanetw.KanePlugin.commands.Vanish$1.run(Vanish.java:123) [16:21:42 WARN]: at java.util.TimerThread.mainLoop(Timer.java:555) [16:21:42 WARN]: at java.util.TimerThread.run(Timer.java:505)
can you help me fix this? thanks :D

Ticket 8

Hi again

I have some more investigation on ticket #8

Version 1.5.0 and version 1.5.1 starts fine on my server. So I think you must have made a change in V1.5.2, which is the root cause?

[Support] turning off update checker possible?

[16:00:43 INFO]: [ActionBarAPI] No update was found, you are running the latest version.

Is it possible to turn this off in config.yml please?

Also, when I check config.yml for this plugin it's 100% empty, no lines. empty file. Is that correct?

Using this as a helper for MobHunting plugin btw, on Spigot 1.13.2

Maven Support

Can you please add the plugin to any maven repository?

java.lang.NoClassDefFoundError

ActionBarAPI 1.5.2 fails onEnable on my server.

My server is Spigot 1.10.2

[10:53:17 ERROR]: Could not load 'plugins/ActionBarAPI-1.5.2.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R4/Packet
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugins(CraftServer.java:297) [spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:202) [spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:540) [spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R4/Packet
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_91]
at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_91]
at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:64) ~[spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
... 6 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R4.Packet
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) ~[spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_91]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_91]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_91]
at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_91]
at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:64) ~[spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot-1.10.2.jar:git-Spigot-3996d7d-6b843d9]
... 6 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.