Thanks! Yeah I realized pretty quickly that ArrayList was the incorrect storage method but that I was looking for a map, and I just onPlayerJoin...
So I'm making this plugin where I wanna store some variables for every player. My plan right now is to create a user class, and when a player...
I fixed it. String sql = "CREATE TABLE IF NOT EXISTS [" +albumName.toLowerCase()+ "] (\n" + " id integer PRIMARY KEY,\n" + "...
Sure! Here is the method that is throwing the error public void createNewAlbum(String albumName) { String url =...
I'm working with databases for the first time in a long time and I'm having an issue. I'm getting this error: [SQLITE_ERROR] SQL error or missing...
For the first bit you said, correct me if I'm wrong, but my understand of the terminology goes like this: int myInteger; is an declaration,...
Like this? public User(Main mainClass, Player p){ Main mainClass = mainClass; UUID uuid = p.getUniqueID(); } That would put mainClass...
I'm creating an instance of User in my onCommand in Main. After I check to ensure the command sender is a player I'm running this: User u = new...
I have two classes. I have my main class "Main" which extends JavaPlugin. I have a Users class which I'm using to manage a bunch of variables. I...
Hello! I'm currently working on a punishment GUI plugin. I have a command where staff members do /punish {player name} and it opens a GUI with...
Thanks! I probably should've specified the version lol, sorry. I need it for a 1.8.9 jar. I'll test it real quick and let you know if it works....
I would like a plugin that disables the brewing of strength II. I believe its possible to make it so that if they put a strength potion and glow...
What would be the best way to limit the amount of items a player has in his hot bar? Ex (if player has two fireworks or two diamond shovel in...
I ran your debug test, and I'm finding that hsmc is returning null. hsmc stands for HeatSeakingMissileCommands, which is the class containing the...
Thanks! Yes, I just havent gotten there yet. What would you all suggest for dealing with an NPE? (Sorry for lots of questions, my developer is...
So I've gotten this: static HashMap<UUID, List<String>> map = new HashMap<>(); public void addFriend(Player p, Player t) {...
if(sender instanceof Player) { Player p = (Player) sender; if(args[0].equalsIgnoreCase("friends")) {...
thanks for the responses! Could I possibly get some examples of this being done? Thanks <3
I'm making a plugin that has "truces" I need to generate and store a list of all the players that a player is teamed with. Each player needs a...
Hello! I'm working on a plugin for a friend's server, and I was wondering what you guys think the most effective way to create a homing...
Separate names with a comma.