Sueta

➜ MySystem - Code by EinSpigotPlugin

1.1.0 BETA

A little Serversystem it will become bigger!

·Plugin

coollogo_com-25849537.png
This is a system that allows you to block messages, advertisements and commands. There is also an API that allows you to send Bungeecord players to other servers. With the API you can also easily create a countdown. And much things more!

coollogo_com-237472327.png

config.yml

# MySystem by EinSpigotPlugin
# ---------------------------
#Commands

Disallowed_Commands:
- /version
- '/minecraft:'
- /pl
- /about
- /me
Disallowed_Commands_Perm: Disallowed.Commands.Perm
Disallowed_Command_Run: '&7[&cSystem&7] &cDieser Befehl existiert nicht!'

#Messages

Disallowed_Messages:
- huso
- arschloch
- wichser
- fotze
- hurensohn
- schwul
- behindert
- lespisch
- lespe
- untermensch
- neger
- schwanz
- penis
- ez
- schlampe
- nutte
- hure
- bustard
- hundesohn
Disallowed_Messages_Perm: Disallowed.Messages.Perm
Disallowed_Messages_Run: '&7[&cSystem&7] &7Du darfst das Wort: &c%msg% &7nicht benutzen!'

#Domains

Disallowed_Domains:
- .net
- .com
- .de
- .tk
- .eu
- .me
- .at
- .ch
- .info
- .org
- .biz
- .nl
- .space
- .ml
Disallowed_Domains_Perm: Disallowed.Domains.Perm
Disallowed_Domains_Run: '&7[&cSystem&7] &7Du darfst keine Werbung machen!'

coollogo_com-11985309.png

CountDown - Class

private static int taskid;

public static void startCountdown() {
taskid = MySystem.getTimer().startCountdown(main.getPlugin(), 20, 30);
}

@EventHandler
public void on(TimerSecondChangeEvent e) {
if(e.getTimerID() == taskid) {
switch (e.getTime()) {
case 30: case 20: case 15: case 10: case 5: case 4: case 3: case 2:
Bukkit.broadcastMessage("[§cTimer§f] §eDer Timer endet in §6" + e.getTime() + " §eSekunden.");
for(Player all : Bukkit.getOnlinePlayers())all.playSound(all.getLocation(), Sound.CLICK, 1, 1);
break;
case 1:
Bukkit.broadcastMessage("[§cTimer§f] §eDer Timer endet in §6" + e.getTime() + " §eSekunde.");
for(Player all : Bukkit.getOnlinePlayers())all.playSound(all.getLocation(), Sound.CLICK, 1, 1);
break;
case 0:
Bukkit.getScheduler().cancelTask(e.getTimerID());
Bukkit.broadcastMessage("[§cTimer§f] §eDas Spiel fängt nun an!");
for(Player all : Bukkit.getOnlinePlayers())all.playSound(all.getLocation(), Sound.LEVEL_UP, 1, 1);
break;
default:
break;
}
}
}

API

use the Timer: MySystem.getTimer().startCountdown(Plugin,time,totaltime)

use the BungeeAPI: MySystem.getBungeeAPI(Plugin)

Similar projects

Plugin →