Hello. I am making a master plugin for my server. I'm currently working on /kick. But, when I try to run it from console, it gives me an error....
@mkezar I believe for PlayerDeathEvent it's .getEntity() not .getplayer(). Don't ask why, since it's a player event.
Use Bukkit.getPlayer with the player's UUID in the ArrayList instead of the Player's name. And you didn't define the ArrayList. You defined the...
Just instance your plugin's Main class. Then check the config then check if that string contains true or false. Then use if statements to check if...
Why can't the suffix and prefix both be in the prefix? As far as I know unless you code your own plugin the, suffix is always AFTER the username.
When I started making bukkit plugin I noticed cmd.getName DOES NOT WORK. I had to use label.equalsIgnoreCase For it to work. @87pen Don't listen...
I think I found where you went wrong. Instead of using cmd.getName.equalsIgnoreCase You should use if(label.equaldsIgnoreCase("Your Command"));...
You didn't make it so that the ItemStack uses the ItemMeta Use playerhead.setItemMeta(playerheadmeta);
Just use the event shown up there somewhere ^^. Then check if it equals the command you want to block. like...
You could check when a player does a command then cancel the event.
Are you questioning me helping? ,_,
@SkyGlue Just use this: package me.SkyGlue; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import...
I'll try it. Thank you.
mythbusterma I just need to know how to convert the Location and Player STRING Back to a LOCATION and PLAYER.
mythbusterma It's the way I am using the Lists, HashMaps, and config.
Okay, I figured out how to use toString() and it worked. But I need to now figure out how to change Strings back into Locations, and Players. Any...
mine-care If you could help me out on using UUIDs and putting the X, Y, and Z cords in a string that would be amazing! I kinda get what you mean...
So I am working on a plugin to have a HashMap as follows: HashMap<Location, Player> c_m_hm = new HashMap<Location, Player>(); When I try to use...
Here I have remade it to work, I didn't test it but I am pretty sure it'll work. package com.Beast.KeptenCustom; import...
I fixed it. This thread is no longer need to post on.
Separate names with a comma.