Thanks, solved.
Hi, when i try to show inventory to player i get this error. Code: private Inventory i; public void showPlayersKitInventory(Player p) {...
I try to store player obj and its work, thanks. Solved.
I use player name in hashmap [SPOILER]
I redid the brackets but the error was not corrected, you wrong.
Hi, i get NullPointerException in this string: plugin.Death.replace(killer.getName(), plugin.Death.get(player.getName() + 1)); HashMap Death:...
It works, thanks. Solved.
@timtower I have a HashMap Kills(HashMap<String, Integer> Kills = new HashMap<String, Integer>();) I try to create this getter: public...
Hi, how I can get a HashMap from main class to another class(Listener) I use this constructor: private KitPVP plugin; public Handler(KitPVP...
@timtower I try to add it, by I get this error Syntax error on token ")", delete this token in this string }).runTaskLater(this, 15);
I add a player name to HashMap: enb.put(p.getName(), 1); And I need to remove it from there in 15 seconds: enb.remove(p.getName()); (I need a...
Hi, how can I stop the code execution for a while? When using Tread.sleep, the server is "sleeping"
I dont know region name, how i can get it?
Hi, looked at all the documentation but could not find a method allowing to get the region knowing the location and the player. How i can do this?
Yes it exists. Does anyone know how to fix this? UPD: @timtower Removed plugin.getDataFolder from the connection and the error was solved....
package kpvp.main; import java.io.File; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import...
This: c = DriverManager.getConnection("jdbc:sqlite:" + main.getDataFolder() + File.separator + "Users.db");
[SPOILER]
Hi, when I join to the server, I get this java.lang.NullPointerException: null PlayerJoinEvent: [SPOILER] sqm.FirstConnectionInsert [SPOILER]
Thanks.
Separate names with a comma.