V tomhle článku se dozvíte, jak zablokovat hráčům jakékoliv příkazy a tab příkazy pro zobrazení pluginů, které používáte na serveru.
Jak lze zjistit pluginy?
Pomocí nejjednodušího příkazu /plugins
Příkaz /plugins lze zablokovat pomocí záporné permise bukkit.command.plugins, ale zablokuje se pouze ten příkaz.
Ostatní příkazy, které ke zjišťování pluginů existují touto permisí nezablokujete!
Pro verze 1.8.x - 1.12.2
- Stáhněte si verzi 6.9.1 pluginu NoPlugins
- Stáhněte si plugin ProtocolLib
- Vložte oba dva pluginy přes Správce Souborů v administraci do složky plugins
- Restartujte server
Konfigurační soubor (config.yml)
# NoPlugins
# Version: 6.9.1
# Developer(s): [Xanium]
# Main configuration file.
#
# Copyrighted under (All Rights Reserved)!
#
# This plugin does not depend ProtocolLib to work, but the tab blocker requires ProtocolLib.
#
# The first setting 'enable-tab-blocker' is where you can decide if you want to use it or not.
# You should never need to add commands to the list for tab blocker but if you use custom commands,
# you can block tabbing on them there.
#
# Then you have the single line messages that pop up when you type /plugins or so. These can you edit as much as you'd like.
#
# Now you have the custom commands section, where you can enable or disable it, and add or
# remove commands to it's list.
#
# Now you have the multi line messages section. Here can you add as many messages as you want to the existing lists.
# It is not recommended to disable the updater for this plugin due to the reason that new updates will
# patch bugs that most likely are critical.
# If you don't notice the update you won't have 100% protection. You can always see the console for updates,
# if you have disabled update notifications ingame.
debug: false
updater: true
update-notification: true
block-opped-players: true
disable_help_command: false
enable-tab-blocker: true
tab-block-everything: false
tab-blocked-commands:
- /about
- /ver
- /bukkit
- /?
- /version
- /bukkit:ver
- /bukkit:version
- /bukkit:?
- /bukkit:about
- /bukkit:help
nopermission: You don't have permission to this.
pluginsMessage: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
plMessage: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
iCanHasBukkitMessage: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
aboutMessage: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
versionMessage: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
verMessage: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
questionMarkMessage: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
bukkitMessage: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
enable-custom-commands: false
custom-command-blocked: '&cThis command has been blocked.'
custom-commands:
- /spigot
- /heal
- /essentials
enable-multi_line-messages: false
pluginsMessageList:
- '&aNot'
- '&aYour'
- '&aBusiness'
plMessageList:
- '&aNot'
- '&aYour'
- '&aBusiness'
iCanHasBukkitMessageList:
- '&aNot'
- '&aYour'
- '&aBusiness'
aboutMessageList:
- '&aNot'
- '&aYour'
- '&aBusiness'
versionMessageList:
- '&aNot'
- '&aYour'
- '&aBusiness'
verMessageList:
- '&aNot'
- '&aYour'
- '&aBusiness'
questionMarkMessageList:
- '&aNot'
- '&aYour'
- '&aBusiness'
bukkitMessageList:
- '&aNot'
- '&aYour'
- '&aBusiness'
Pro verze 1.13.x - 1.16.x
- Stáhněte si nejnovější verzi pluginu NoPlugins
- Vložte plugin přes Správce Souborů v administraci do složky plugins
- Restartujte server
Konfigurační soubor (config.yml)
# Povolit debug zprávy?
debug: false
# Povolit / Zakázat kontrolu aktualizací
updater: true
# Povolit / Zakázat oznámení o aktualizaci při připojení k serveru s dostatečnými oprávněními
update-notification: true
# Operátor bypassuje NoPlugins? (/op)
# Pokud je nastavena hodnota false, nemůžete být op a musíte mít povolení (noplugin.bypass) k bypassnutí.
# V opačném případě, pokud je nastavena na hodnotu true, můžete být op a mít specifikované oprávnění.
operator-bypass: false
# Zobrazit zprávy seznamu?
list-messaging: false
# Odebrat každý příkaz ze seznamu příkazů ve hře?
# To se zobrazí, když otevřete chat, zadáte „/“ a poté stisknete tabulátor.
clear-command-list: false
# Seznam zablokovaných příkazů
removed-commands:
- about
- ver
- '?'
- version
- pl
- plugins
- bukkit:pl
- bukkit:plugins
- bukkit:ver
- bukkit:version
- bukkit:?
- bukkit:about
- bukkit:help
# Povolit / zakázat ochranu string příkazů
string-command-protection: false
# String příkaz zpráva
string-command-blocked: "&cThis command has been blocked!"
# Seznam string příkazů, tento seznam může obsahovat příkazy, které na serveru ve skutečnosti neexistují.
string-commands:
- /spigot
- /essentials
- /pex
# Povolit / Zakázat příkazy pouze z konzole
console-only-commands: false
# Pouze konzole zprávy
console-only-message: "&cThis command is console only!"
# Pouze konzole seznam příkazů
console-commands:
- /op
- /deop
- /stop
# Blokovat všechny příkazy z konkrétních pluginů?
block-plugin-commands: false
# Seznam pluginů, ze kterých se mají blokovat příkazy
# Tato funkce nemusí fungovat na všech pluginech, protože registrují příkazy odlišně
plugins:
- WorldEdit
- WorldGuard
##########################
# Obecné zprávy níže #
##########################
nopermission: 'You don''t have permission to do this!'
# V této sekci zpráv můžete přidat další příkazy, abyste měli vlastní zprávy!
# Klíčem musí být to, čím je příkaz, např. "about: 'your message'", to není případ SenSITive
messages:
plugins: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
pl: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
iCanHasBukkit: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
about: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
version: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
ver: 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
'?': 'Plugins (3): &aNot&f, &aYour&f, &aBusiness'
# Tato část je určena pro zprávy s více řádky!
# Zde můžete přidat další příkazy, pokud jsou nastaveny jako výchozí:
# plugins:
# - '&aNot'
# - '&aYour'
# - '&aBusiness'
# - 'More lines? :)'
list-messages:
plugins:
- '&aNot'
- '&aYour'
- '&aBusiness'
pl:
- '&aNot'
- '&aYour'
- '&aBusiness'
iCanHasBukkit:
- '&aNot'
- '&aYour'
- '&aBusiness'
about:
- '&aNot'
- '&aYour'
- '&aBusiness'
version:
- '&aNot'
- '&aYour'
- '&aBusiness'
ver:
- '&aNot'
- '&aYour'
- '&aBusiness'
'?':
- '&aNot'
- '&aYour'
- '&aBusiness'