Detect when a plugin is stopping in a runnable
So, I have a runnable which is doing some stuff handy dandy, but, when i reload or stop the server i want to run some methods that would only run when the server is stopping, i was thinking maybe there...
View ArticleSending information to bungee via JavaPlugin, possible?
Is it possible, without the use of external database software such as Redis, to send BungeeCord byte data (the same way bungee can send it to a server - with channels).
View ArticleBungee plugin messaging request issues
Hello, I use the following code to register the outgoing plugin channel: Code (Text): public void register(){ Bukkit.getMessenger().registerOutgoingPluginChannel(Main.getInstance(),...
View ArticleBanManger help
This is a Error | http://prntscr.com/eatw11 Here is the class : BanManager | http://pastebin.com/Kpb9g89x BannCommand | http://pastebin.com/A7Bb12f0 MySQL | http://pastebin.com/h29FLdNP If you can help...
View ArticleSkullMeta with GUI item placing
Okay, so I have this.. - Code (Text): ItemStack close = new ItemStack(Material.SKULL_ITEM, 1, (short)3); SkullMeta sm = (SkullMeta) close.getItemMeta(); sm.setOwner(p.getName());...
View ArticleCommunicate between a 'hub' and a minigame server through bungee
Hello, I have this Hub server and several minigame servers. I did some research and I found some information about communication between the hub and other servers. In my hub i'd like to display the...
View ArticleHow to determine that a mob spawning has a name?
Code (Text): @EventHandler public void onEntitySpawn( CreatureSpawnEvent event) { System.out.println("Name: " + event.getEntity().getName()); System.out.println("Custom: " +...
View ArticleRunnable Error.
Hello guys, I Was wondering if someone could help me, I am trying to switch from BukkitRunnable to this new Java one i learnt recently, it's ALOT better in my none bukkit projects because well it...
View ArticleHow do you create custom config files using the spigot API?
Hi, I was wondering how can you make multiple config files, in this case I want one called "config" and another called "kits", and I want to be able to use them and get them in different classes, I've...
View ArticleAll BungeeCord Command + Permissions
type = info | message = These commands are completely handled by the proxy, so if you try to have a Bukkit plugin on your server execute one of the following Bungee commands, it will not work! If the...
View ArticleMoving players to hub on crash not working
Hey, at the moment, I am trying to write a bunee plugin, which can move online players to the hub, when the server goes down. My code: Code (Text): @EventHandler public void onChat(ServerKickEvent...
View ArticleSending plugin msgs from Bungee to Spigot
Hiya... I successfully use plugin messaging to send messages from Spigot across Bungee to other Spigots. But now I'm trying to generate a message from Bungee to a Spigot and I'm having an awful time....
View ArticleImport NoCheatPlus into Eclipse?
I'm trying to make a fork of NCP but I don't know how to import the project into my IDE (Eclipse). Is there a guide somewhere or can someone help me?
View ArticleFetch motd of a different server using sockets
Yes, I know this question has already been asked several times before, but none of the approaches worked for me, hence this question. I basically want to retrieve the MOTD of a server from a different...
View ArticleBungeeCord ServerPing
Hello folks, can anyone shows me an example how to ping a server in a bungeecord network with serverinfo.ping?
View ArticleCan pick up old item from clear?
Hey, so I'm making a plugin but i made it so when you right click with a certain item in your hand (Iron sword, int his case) it clears the inventory and adds one item. However, once I've done this, it...
View ArticleGetting BungeeCord Config ConfigurationSection and putting it into a Set?
I'm familiar of how to do this with spigot and bukkit. But I am a bit unfamiliar with BungeeCord. (The wiki wasn't much help with this...) Code (Text): Configuration set =...
View ArticleSetbanned deprecated?
Usually deprecated means something wont work "soon" or may not work on later versions in a later stage. So the question is.... if setbanned is deprecated what is another method to ban a player in a...
View ArticleI'm in need of urgent help!
Hey guys, so I'm fairly new to Java, and I was wondering, how would I make it so I can have a comand like "/bv help", like a two word command. I've tried if (cmd.getName().equalsIgnoreCase("bv help"))...
View ArticleChat Component API not working?
Here is my current code: Code (Text): @Override public void execute(CommandSender sender, String[] args) { ProxiedPlayer player = (ProxiedPlayer) sender; // if...
View Article