mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Hehe no silly hat for me
This commit is contained in:
parent
94a4f628c7
commit
a6144f6dee
@ -51,10 +51,10 @@ public class McremoveCommand implements CommandExecutor {
|
|||||||
/* MySQL */
|
/* MySQL */
|
||||||
if (Config.getInstance().getUseMySQL()) {
|
if (Config.getInstance().getUseMySQL()) {
|
||||||
Database database = mcMMO.getPlayerDatabase();
|
Database database = mcMMO.getPlayerDatabase();
|
||||||
int success = 0;
|
int affected = 0;
|
||||||
success = database.update("DELETE FROM " + tablePrefix + "users WHERE " + tablePrefix + "users.user = '" + playerName + "'");
|
affected = database.update("DELETE FROM " + tablePrefix + "users WHERE " + tablePrefix + "users.user = '" + playerName + "'");
|
||||||
|
|
||||||
if (success > 0) {
|
if (affected > 0) {
|
||||||
sender.sendMessage(success);
|
sender.sendMessage(success);
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist"));
|
sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist"));
|
||||||
|
Loading…
Reference in New Issue
Block a user