@OmniShadox Do you ever call openConnection() before calling containsPlayer()? If you are I'm guessing something is going wrong in your...
@Camaloony l DragNet Owner I think this article can be very usefull for you: https://refactoring.guru/smells/duplicate-code It's about...
@ThrustLP Your CREATE TABLE query is almost right. You should check to see if you didn't forget anything at the end. Maybe try and execute the...
@ThrustLP Your code could be throwing an exception on different locations. By calling the getMessage() on the error you are getting null where...
@WRLD Without any errors we can't help much with your problem. However looking at your ChatManager you are making a lot of calls to the database...
@Oxore99 if (isRunning = true) //You are setting the isRunning variable to true if(isRunning == true)//This is checking if the value of isRunning...
@MCJoshua345 If you need an other class that extends JavaPlugin then you might want to rethink your design. You should be passing the only...
@MaxNatural It could be that the Player object that you are getting form the onCommand does not reference the same object that has been stored...
openConnection(); PreparedStatement statement = connection.prepareStatement("insert into corereport(`Player`,`Reporter`,`Reason`,`Status`)...
@DarkRangerMC What Columns does your table have?
-- Make sure you have the ID set to primary key of your table. ALTER TABLE test MODIFY COLUMN `ID column of your table` INT NOT NULL...
@EnderApocalypse There are some problems in your code. First of all you return false before doing any code. Your method stops running on line 15....
@ESSHD You need to use `balance`. When you use normal quotes it does not recognize it as a column, but as a varchar.
@Meatiex No :P Java doesn't round the number like your calculator does
@stonebloodtv I posted this on a different thread a few days ago, but that's the problem when you use the static keyword without knowing why you...
Check your stack trace You are calling next() on an empty result set.
@ESSHD You should use UPDATE `tablename` SET `balance` = `balance` + ammount WHERE `uuid` = playerid If you want to achieve this. Take a good...
@PDKnight Woops it should be without the = SELECT player,message,f FROM `ircchat_mc` WHERE id IN ( SELECT MAX(id) FROM `ircchat_mc`);...
@PDKnight Does countRowsInTable() close the connection after it is finished? In that case you have to make sure you leave it open. Or you can use...
At this rate we might as well write your whole plugin... Try and do some research and ask specific questions. At this point you are just hoping...
Separate names with a comma.