geforkt von SteamWar/BungeeCore
/r included
Dieser Commit ist enthalten in:
Ursprung
e01c120056
Commit
5b4cb4fc10
@ -1,6 +1,7 @@
|
|||||||
package de.steamwar.bungeecore.commands;
|
package de.steamwar.bungeecore.commands;
|
||||||
|
|
||||||
import de.steamwar.bungeecore.BungeeCore;
|
import de.steamwar.bungeecore.BungeeCore;
|
||||||
|
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;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
@ -31,7 +32,10 @@ public class RCommand extends BasicCommand {
|
|||||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDu hast bisher mit niemandem geschrieben!");
|
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDu hast bisher mit niemandem geschrieben!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (IgnoreSystem.isIgnored(target.getUniqueId(), player.getUniqueId())) {
|
||||||
|
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDieser Spieler hat dich geblockt!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(!target.isConnected()){
|
if(!target.isConnected()){
|
||||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDieser Spieler ist derzeit nicht online!");
|
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDieser Spieler ist derzeit nicht online!");
|
||||||
return;
|
return;
|
||||||
|
@ -16,14 +16,14 @@ public class UnIgnoreCommand extends BasicCommand {
|
|||||||
public void execute(CommandSender s, String[] args) {
|
public void execute(CommandSender s, String[] args) {
|
||||||
if (!(s instanceof ProxiedPlayer)) return;
|
if (!(s instanceof ProxiedPlayer)) return;
|
||||||
ProxiedPlayer p = (ProxiedPlayer) s;
|
ProxiedPlayer p = (ProxiedPlayer) s;
|
||||||
SteamwarUser target = SteamwarUser.get(args[0]);
|
SteamwarUser t = SteamwarUser.get(args[0]);
|
||||||
if(target == null){
|
if(t == null){
|
||||||
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 {
|
}else {
|
||||||
IgnoreSystem.unIgnore(p.getUniqueId(), target.getUuid());
|
IgnoreSystem.unIgnore(p.getUniqueId(), t.getUuid());
|
||||||
BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§7Du beachtest nun " + target.getUserName() + " wieder.");
|
BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§7Du beachtest nun " + t.getUserName() + " wieder.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
In neuem Issue referenzieren
Einen Benutzer sperren