People talk a lot in this forum by unnecessary things, this is my last topic here.
Class: public class Cooldown { public Cooldown(int seconds) { this.seconds = seconds; } private int seconds = 0;...
Why use ChatColor enum instead??? ChatColor.GREEN toString is §a don't make sense use this .-.
The problem don't is lagging! is freezing the server while server.accept() is waiting for a message! i solved this.
I had one question about sockets, the accept() method is sleeping my server while don't receive sockets, ex: [0:00] server open! TOTAL FREEZE...
Create more than one Class for Cooldown's ? It's for be sexy EDIT by Timtower: merged posts
Usually cooldowns are small, 10-minute or one second, think unnecessary use UUID for this, but if you want to change this is very simple API.
1. Create one class in a package like... "your.name.plugin.Util" 2. In this class. Paste this UUID VERSION : private static HashMap<UUID,...
I want make my plugin to nerf Strenght potion. But don't work fine... See the code! What is the error??? Help me pls Error = The sharp +...
Separate names with a comma.