mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Some restrictions and something should of added a while ago
This commit is contained in:
parent
0c702ee967
commit
bfefebe480
@ -225,9 +225,10 @@ public class TotalFreedomMod extends AeroPlugin<TotalFreedomMod>
|
|||||||
btb = bridges.registerService(BukkitTelnetBridge.class);
|
btb = bridges.registerService(BukkitTelnetBridge.class);
|
||||||
cpb = bridges.registerService(CoreProtectBridge.class);
|
cpb = bridges.registerService(CoreProtectBridge.class);
|
||||||
esb = bridges.registerService(EssentialsBridge.class);
|
esb = bridges.registerService(EssentialsBridge.class);
|
||||||
ldb = bridges.registerService(LibsDisguisesBridge.class);
|
// Disabled so I can at least load TFM as these plugins aren't updated
|
||||||
web = bridges.registerService(WorldEditBridge.class);
|
//ldb = bridges.registerService(LibsDisguisesBridge.class);
|
||||||
wgb = bridges.registerService(WorldGuardBridge.class);
|
//web = bridges.registerService(WorldEditBridge.class);
|
||||||
|
//wgb = bridges.registerService(WorldGuardBridge.class);
|
||||||
amp = bridges.registerService(AMP.class);
|
amp = bridges.registerService(AMP.class);
|
||||||
bridges.start();
|
bridges.start();
|
||||||
|
|
||||||
|
@ -113,6 +113,17 @@ public class AdminList extends FreedomService
|
|||||||
config.save();
|
config.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void messageAllAdmins(String message)
|
||||||
|
{
|
||||||
|
for (Player player : server.getOnlinePlayers())
|
||||||
|
{
|
||||||
|
if (isAdmin(player))
|
||||||
|
{
|
||||||
|
player.sendMessage(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized boolean isAdminSync(CommandSender sender)
|
public synchronized boolean isAdminSync(CommandSender sender)
|
||||||
{
|
{
|
||||||
return isAdmin(sender);
|
return isAdmin(sender);
|
||||||
|
@ -8,7 +8,7 @@ import org.bukkit.command.Command;
|
|||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH, blockHostConsole = true)
|
@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH)
|
||||||
@CommandParameters(description = "Warns a player.", usage = "/<command> <player> <reason>")
|
@CommandParameters(description = "Warns a player.", usage = "/<command> <player> <reason>")
|
||||||
public class Command_warn extends FreedomCommand
|
public class Command_warn extends FreedomCommand
|
||||||
{
|
{
|
||||||
@ -48,6 +48,16 @@ public class Command_warn extends FreedomCommand
|
|||||||
|
|
||||||
msg(player, ChatColor.RED + "[WARNING] You received a warning: " + warnReason);
|
msg(player, ChatColor.RED + "[WARNING] You received a warning: " + warnReason);
|
||||||
msg(ChatColor.GREEN + "You have successfully warned " + player.getName());
|
msg(ChatColor.GREEN + "You have successfully warned " + player.getName());
|
||||||
|
final StringBuilder adminNotice = new StringBuilder()
|
||||||
|
.append(ChatColor.RED)
|
||||||
|
.append(sender.getName())
|
||||||
|
.append(" - ")
|
||||||
|
.append("Warning: ")
|
||||||
|
.append(player.getName())
|
||||||
|
.append(" - Reason: ")
|
||||||
|
.append(ChatColor.YELLOW)
|
||||||
|
.append(warnReason);
|
||||||
|
plugin.al.messageAllAdmins(adminNotice.toString());
|
||||||
|
|
||||||
plugin.pl.getPlayer(player).incrementWarnings();
|
plugin.pl.getPlayer(player).incrementWarnings();
|
||||||
|
|
||||||
|
@ -140,8 +140,11 @@ blocked_commands:
|
|||||||
- 'n:b:/pp hugeexplosion:You may not use this particle! Please use another.'
|
- 'n:b:/pp hugeexplosion:You may not use this particle! Please use another.'
|
||||||
- 'n:b:/pp barrier:You may not use this particle! Please use another.'
|
- 'n:b:/pp barrier:You may not use this particle! Please use another.'
|
||||||
- 'n:b:/setjail:_'
|
- 'n:b:/setjail:_'
|
||||||
- 'n:b:/tfbanlist:Use /banlist to see and wipe the ban list'
|
- 'n:b:/function:_'
|
||||||
- 'n:b:/tfipbanlist:Use /banlist to see and wipe the ban list'
|
- 'n:b:/defaultgamemode:_'
|
||||||
|
- 'n:b:/data:_'
|
||||||
|
- 'n:b:/datapack:_'
|
||||||
|
- 'n:b:/tag:_'
|
||||||
|
|
||||||
# Superadmin commands
|
# Superadmin commands
|
||||||
- 's:b:/save-all:_'
|
- 's:b:/save-all:_'
|
||||||
@ -180,6 +183,8 @@ blocked_commands:
|
|||||||
- 's:b:/togglejail:_'
|
- 's:b:/togglejail:_'
|
||||||
- 's:b:/fill:_'
|
- 's:b:/fill:_'
|
||||||
- 's:b:/flood:_'
|
- 's:b:/flood:_'
|
||||||
|
- 's:b:/team:_'
|
||||||
|
- 'n:b:/bossbar:_'
|
||||||
|
|
||||||
# Superadmin commands - Auto-eject
|
# Superadmin commands - Auto-eject
|
||||||
- 's:a:/stop:_'
|
- 's:a:/stop:_'
|
||||||
|
@ -2,7 +2,7 @@ name: TotalFreedomMod
|
|||||||
main: me.totalfreedom.totalfreedommod.TotalFreedomMod
|
main: me.totalfreedom.totalfreedommod.TotalFreedomMod
|
||||||
version: ${tfm.build.version}
|
version: ${tfm.build.version}
|
||||||
description: Plugin for the Total Freedom server.
|
description: Plugin for the Total Freedom server.
|
||||||
depend: [Aero, WorldEdit]
|
depend: [Aero]
|
||||||
softdepend: [BukkitTelnet, Essentials, LibsDisguises]
|
softdepend: [BukkitTelnet, Essentials, LibsDisguises]
|
||||||
authors: [Madgeek1450, Prozza]
|
authors: [Madgeek1450, Prozza]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user