parent
669c5aa616
commit
2d46c3bc20
4 changed files with 30 additions and 19 deletions
Binary file not shown.
|
@ -363,6 +363,7 @@ public class ChatProcessing {
|
||||||
else
|
else
|
||||||
obj.getScore(p.getName()).setScore(-1);
|
obj.getScore(p.getName()).setScore(-1);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
obj.getScore(p.getName()).setScore(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PluginMain.Instance
|
PluginMain.Instance
|
||||||
|
|
|
@ -290,6 +290,14 @@ public class Commands implements CommandExecutor {
|
||||||
player.chat(msg);
|
player.chat(msg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
case "shrug": {
|
||||||
|
String msg = " ¯\\_(ツ)_/¯";
|
||||||
|
if (args.length > 0) {
|
||||||
|
msg = args[0] + "" + msg;
|
||||||
|
}
|
||||||
|
player.chat(msg);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
case "chatonly": {
|
case "chatonly": {
|
||||||
MaybeOfflinePlayer p = MaybeOfflinePlayer.AllPlayers.get(player
|
MaybeOfflinePlayer p = MaybeOfflinePlayer.AllPlayers.get(player
|
||||||
.getUniqueId());
|
.getUniqueId());
|
||||||
|
|
|
@ -117,7 +117,7 @@ public class PlayerListener implements Listener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
tt.mp = mp;
|
tt.mp = mp;;
|
||||||
timer.schedule(tt, 15 * 1000);
|
timer.schedule(tt, 15 * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,8 +204,8 @@ public class PlayerListener implements Listener {
|
||||||
tt.mp = mp;
|
tt.mp = mp;
|
||||||
int timeout = AuthMe.getInstance().getConfig()
|
int timeout = AuthMe.getInstance().getConfig()
|
||||||
.getInt("settings.restrictions.timeout");
|
.getInt("settings.restrictions.timeout");
|
||||||
timer.schedule(tt, timeout / LoginWarningCountTotal * 1000, timeout
|
timer.schedule(tt, (timeout / LoginWarningCountTotal) * 1000,
|
||||||
/ LoginWarningCountTotal * 1000);
|
(timeout / LoginWarningCountTotal) * 1000);
|
||||||
|
|
||||||
/* NICKNAME LOGIC */
|
/* NICKNAME LOGIC */
|
||||||
|
|
||||||
|
@ -712,20 +712,22 @@ public class PlayerListener implements Listener {
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.LOWEST)
|
@EventHandler(priority = EventPriority.LOWEST)
|
||||||
public void onPlayerTeleport(PlayerTeleportEvent e) {
|
public void onPlayerTeleport(PlayerTeleportEvent e) {
|
||||||
/*if (BoardColl.get().getFactionAt(PS.valueOf(e.getFrom())).getId()
|
/*
|
||||||
.equalsIgnoreCase("nomansland")
|
* if (BoardColl.get().getFactionAt(PS.valueOf(e.getFrom())).getId()
|
||||||
|| BoardColl.get().getFactionAt(PS.valueOf(e.getTo())).getId()
|
* .equalsIgnoreCase("nomansland") ||
|
||||||
.equalsIgnoreCase("nomansland")) {*/
|
* BoardColl.get().getFactionAt(PS.valueOf(e.getTo())).getId()
|
||||||
|
* .equalsIgnoreCase("nomansland")) {
|
||||||
|
*/
|
||||||
// e.setTo(e.getFrom());
|
// e.setTo(e.getFrom());
|
||||||
// e.setCancelled(true); // Relative coordinates mess it up
|
// e.setCancelled(true); // Relative coordinates mess it up
|
||||||
/*
|
/*
|
||||||
* System.out.println("From: " + e.getFrom());
|
* System.out.println("From: " + e.getFrom()); System.out.println("To: "
|
||||||
* System.out.println("To: " + e.getTo());
|
* + e.getTo()); System.out.println("Cause: "+e.getCause());
|
||||||
* System.out.println("Cause: "+e.getCause());
|
*/
|
||||||
|
/*
|
||||||
|
* e.getPlayer().sendMessage(
|
||||||
|
* "§cYou are not allowed to teleport to/from No Mans Land."); }
|
||||||
*/
|
*/
|
||||||
/*e.getPlayer().sendMessage(
|
|
||||||
"§cYou are not allowed to teleport to/from No Mans Land.");
|
|
||||||
}*/
|
|
||||||
|
|
||||||
if (MaybeOfflinePlayer.GetFromPlayer(e.getPlayer()).ChatOnly) {
|
if (MaybeOfflinePlayer.GetFromPlayer(e.getPlayer()).ChatOnly) {
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
|
|
Loading…
Reference in a new issue