geforkt von SteamWar/BungeeCore
Add UnIgnoreCommand MultiLang
Dieser Commit ist enthalten in:
Ursprung
8cdcac7371
Commit
327f09d85e
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
package de.steamwar.bungeecore.commands;
|
package de.steamwar.bungeecore.commands;
|
||||||
|
|
||||||
import de.steamwar.bungeecore.BungeeCore;
|
import de.steamwar.bungeecore.Message;
|
||||||
import de.steamwar.bungeecore.sql.IgnoreSystem;
|
import de.steamwar.bungeecore.sql.IgnoreSystem;
|
||||||
import de.steamwar.bungeecore.sql.SteamwarUser;
|
import de.steamwar.bungeecore.sql.SteamwarUser;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
@ -34,7 +34,7 @@ public class UnIgnoreCommand extends BasicCommand {
|
|||||||
@Override
|
@Override
|
||||||
public void execute(CommandSender sender, String[] args) {
|
public void execute(CommandSender sender, String[] args) {
|
||||||
if(args.length < 1) {
|
if(args.length < 1) {
|
||||||
BungeeCore.send(sender, BungeeCore.CHAT_PREFIX + "§8/§eunignore §8[§7Spieler§8]");
|
Message.send("UNIGNORE_SYNTAX", sender);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,15 +45,15 @@ public class UnIgnoreCommand extends BasicCommand {
|
|||||||
|
|
||||||
SteamwarUser target = SteamwarUser.get(args[0]);
|
SteamwarUser target = SteamwarUser.get(args[0]);
|
||||||
if(target == null){
|
if(target == null){
|
||||||
BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§cDiesen Spieler gibt es nicht!");
|
Message.send("UNIGNORE_NOT_PLAYER", p);
|
||||||
return;
|
return;
|
||||||
}else if(!IgnoreSystem.isIgnored(user, target)){
|
}else if(!IgnoreSystem.isIgnored(user, target)){
|
||||||
BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§cDu ignorierst diesen Spieler nicht.");
|
Message.send("UNIGNORE_NOT_IGNORED", p);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
IgnoreSystem.unIgnore(user, target);
|
IgnoreSystem.unIgnore(user, target);
|
||||||
BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§7Du empfängst nun wieder Nachrichten von §e" + target.getUserName() + "§8.");
|
Message.send("UNIGNORE_UNIGNORED", p, target.getUserName());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -400,4 +400,10 @@ TP_NOT_FOUND=§cKonnte das angegebene Ziel nicht finden.
|
|||||||
|
|
||||||
#UnbanCommand
|
#UnbanCommand
|
||||||
UNBAN_SYNTAX=/unban [Spieler]
|
UNBAN_SYNTAX=/unban [Spieler]
|
||||||
UNBAN_UNBANNED=Du hast {0} entbannt.
|
UNBAN_UNBANNED=Du hast {0} entbannt.
|
||||||
|
|
||||||
|
#UnignoreCommand
|
||||||
|
UNIGNORE_SYNTAX=§8/§eunignore §8[§7Spieler§8]
|
||||||
|
UNIGNORE_NOT_PLAYER=§cDiesen Spieler gibt es nicht!
|
||||||
|
UNIGNORE_NOT_IGNORED=§cDu ignorierst diesen Spieler nicht.
|
||||||
|
UNIGNORE_UNIGNORED=§7Du empfängst nun wieder Nachrichten von §e{0}§8.
|
In neuem Issue referenzieren
Einen Benutzer sperren