I think I've forgotten that. By the way, how do I call a method from that class if it's not static?
You mean this? PluginManager pm = Bukkit.getPluginManager(); pm.registerEvents(new PlayerFrozenListener(this),this);
it's in the main class ( Punish ) public ArrayList<Player> frozen = new ArrayList<Player>(); This is why I use plugin.frozen.(etc) public...
What I mean that isn't executing when a player is added into the arraylist [(plugin.frozen) + (plugin is the main class and I use plugin.frozen...
public void PlayerFrozen() { new BukkitRunnable() { public void run() { for (Player player : plugin.frozen) {...
still not working
This is what I've tried public void PlayerFrozen() { Bukkit.getScheduler().scheduleSyncDelayedTask(this.plugin, new Runnable() {...
I mean I learnt basics of Java and know for loop and so forth. But when I tried to loop the arraylist didnt work
What do you mean? I don't get it
I want to send a message to a player that's in an arraylist.
Oh. The casting Plugin fixed it. And how do I get that player without getting error?
Oh. Now I've got another problem. It isnt working(Not getting error, just not executing). The code: public void PlayerFrozen() { Player...
Oh ok, and what does UTF-8 mean?
I tried but it says this: https://gyazo.com/dfb99c64dbdca5c71a82febfaf79b769
Is there a way to send the ■ into a text like this...
How do I do a timer that sends a message to a player that's in an arraylist?
I'm getting some problems with events when I want to cancel them. I get the same error with BlockBreakEvent too. Here's the code: public class...
Well, I think it's pretty simple. Add flag 'other-explosion' to spawn(E.g.:"//region spawn flag other-explosion deny") BTW if you want to protect...
Here's the code: public class InstaDespawn extends JavaPlugin implements Listener{ public void onEnable() { saveDefaultConfig();...
Thanks a lot!
Separate names with a comma.