Cześć, gracz odkrył że mimo vanisha, można zobaczyć czy admin jest na serwerze poprzez podpowiedzi. np. /ban. Pomógłby ktoś napisać skrypt który zablokuje podpowiedzi w poniższych komendach?
/unban <name, IP or UUID>
/ban <name, IP or UUID> <reason>
/ipban <name, IP or UUID> <reason>
/tempban <name, IP or UUID> <number> <minutes|hours|days|weeks|etc> <reason>
/tempipban <name, IP or UUID> <number> <minutes|hours|days|weeks|etc> <reason>
/mute <name or UUID>
/tempmute <name or UUID> <number> <minutes|hours|days|weeks|etc>
/kick <name, * for everyone or UUID>
/checkip <name or UUID>
/uuid
/togglechat
/dupeip <name, IP or UUID>
/checkban <name, IP or UUID>
/warn <name or UUID> <reason>
/clearwarnings <name or UUID> <reason>
/unwarn <name or UUID> - Removes a players most recent warning
/unmute <name or UUID>
/history [name] [number of records] - Displays a history of bans, kicks, mutes & more dealt
/mbreload - Reloads the plugin
/mbdebug - Outputs debug information for me if you're having issues!
/mbwhitelist <name or UUID> - Allows the given user to bypass IP bans (Not regular bans! Eg, use for players with siblings who need to be IP banned)
/ipreport - Basically, a mass /dupeip, on everyone who is online
/lockdown [reason]
/forcespawn - Teleports someone to the spawn (Twice, so /back won't work)
/mbreload - Reloads maxbans
/mbimport - Imports vanilla minecraft (And others) bans.
/mbexport - Export bans to vanilla, MySQL or SQLite databases. (Allows swapping SQLite <-> MySQL), and others ban plugins.
/rangeban <ip1-ip2> [reason] - Bans the IP range from ip1 to ip2 for the supplied reason.
/temprangeban <ip1-ip2> <time> <hours/min/sec> [reason] - Temporary variant of above
/unrangeban <ip> - Removes any RangeBan which overlaps with the given IP. Eg, if 127.0.0.1-127.0.0.5 is banned, unbanning 127.0.0.3 will lift the whole ban on 127.0.0.1-127.0.0.5.
Ogólnie zacząłem pisać, ale chcę się doradzić, w jaki sposób mogę to zrobić w bardziej optymalizowany sposób.
command /ban [<text>]:
permission: anty.ban
permission message: &cNie tym razem. :)
trigger:
if argument 1 is not set:
send "&cNie tym razem. :)"
command /mute [<text>]:
permission: anty.ban
permission message: &cNie tym razem. :)
trigger:
if argument 1 is not set:
send "&cNie tym razem. :)"
command /kick [<text>]:
permission: anty.ban
permission message: &cNie tym razem. :)
trigger:
if argument 1 is not set:
send "&cNie tym razem. :)"