Bukkit.getScheduler().scheduleAsyncRepeatingTask(Main.plugin, new Runnable() { @Override...
I want to store some data in my config file. But suddenly I have problems saving the UUID of the player. It actually always worked with...
No, suprisingly not :/
ok
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm"); Date expireDate = sdf.parse(getConfig().getString(uuid + ".end")); //Unhandled...
if(getConfig().getString(uuid + ".end") > sdf.format(new Date()))) That should work. I just cannot compare dates in the format dd/MM/yyyy HH:mm...
Thank you. That is what I've done: ArrayList<UUID> uuids = new ArrayList<UUID>(); @Override public void onEnable() {...
else if(sign.getLine(0).equals("[Rent]")) { long rentTime = 0; String rts = sign.getLine(2);...
The problem with BukkitRunnables is that the time wouldn't count when the server is offline. Well, I'll try something with switch. I don't find a...
The bukkit servers were lagging to that moment. That could be the reason why the thread was posted twice. However, sorry that was not my...
Ouh.. that's gonna be very hard for a beginner like me. I don't need the config for other stuff, so I thought I could use that file to store the...
I'm making a region market plugin for my server and want to add a rent function. You create a sign and one of the lines means the time you will...
fuuu... of course. How couldn't I think about that. I hope set line 0 to "[Kaufen]" does not trigger the signchangeevent ;D thank you :)
fireblast709 Sorry, I don't understand O.o Maybe you try explaining what you mean in a code?
I answered like 3 times now. This is not the solution, because the permission does not allow to create buy-signs, it allows to let the plugin...
Creating colorful signs is possible on my server, also for normal users. I added a permission to create these signs. But they do need the...
The permission would only allow to automaticly change the sign from "[gs], 100" to "[Kaufen], Price: 100€". But if you directly create a sign with...
It will never be a wall sign ;D But how does the plugin know this sign is a sign made with [gs] in the first line and the price in the second and...
if(e.getAction()==(Action.RIGHT_CLICK_BLOCK)&& e.getClickedBlock().getType()== Material.SIGN_POST){ It already is in the code, but that...
Separate names with a comma.