geforkt von SteamWar/BungeeCore
Command-Permission-Updated
Dieser Commit ist enthalten in:
Ursprung
42cbf18c27
Commit
d9efeefd2b
@ -24,10 +24,7 @@ public class ChallengeCommand extends BasicCommand {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(sender instanceof ProxiedPlayer)) {
|
if (!(sender instanceof ProxiedPlayer)) {return;}
|
||||||
BungeeCore.send(sender, BungeeCore.CHAT_PREFIX + "You cant run this from the Console..");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ProxiedPlayer target = ProxyServer.getInstance().getPlayer(args[0]);
|
ProxiedPlayer target = ProxyServer.getInstance().getPlayer(args[0]);
|
||||||
if(target == null){
|
if(target == null){
|
||||||
|
@ -9,7 +9,7 @@ import net.md_5.bungee.api.connection.ProxiedPlayer;
|
|||||||
public class IgnoreCommand extends BasicCommand {
|
public class IgnoreCommand extends BasicCommand {
|
||||||
|
|
||||||
public IgnoreCommand() {
|
public IgnoreCommand() {
|
||||||
super("ignore", "steamwar.ignore");
|
super("ignore", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -21,7 +21,7 @@ public class IgnoreCommand extends BasicCommand {
|
|||||||
BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§cDieser Spieler ist derzeit nicht online!");
|
BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§cDieser Spieler ist derzeit nicht online!");
|
||||||
return;
|
return;
|
||||||
}else if(target.equals(p)){
|
}else if(target.equals(p)){
|
||||||
BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§cWie willst du dich selber Ignorieren?");
|
BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§cWie willst du dich selber ignorieren?");
|
||||||
return;
|
return;
|
||||||
}else {
|
}else {
|
||||||
IgnoreSystem.ignore(p.getUniqueId(), target.getUniqueId());
|
IgnoreSystem.ignore(p.getUniqueId(), target.getUniqueId());
|
||||||
|
@ -9,7 +9,7 @@ import net.md_5.bungee.api.connection.ProxiedPlayer;
|
|||||||
public class UnIgnoreCommand extends BasicCommand {
|
public class UnIgnoreCommand extends BasicCommand {
|
||||||
|
|
||||||
public UnIgnoreCommand() {
|
public UnIgnoreCommand() {
|
||||||
super("unignore", "steamwar.ignore");
|
super("unignore", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren