~ complete plugin overhaul, including the
config.yml Please delete your old configuration file. A new one will be generated.
Code (YAML):
# RaidersHeaven.eu -- Force Resourcepack # - Minecraft plugin - # # Configurable forced resourcepack for your server ☄️ Perfect to prevent XRAY resourcepacks!
# Set the resourcepack url for direct download. I recommend using https://mc-packs.net/ # Check the size of your resourcepack beforehand! See the following table: # > 1.18 | 250 MiB # < 1.18 | 100 MiB (≈ 100.8 MB) # < 1.15 | 50 MiB (≈ 50.4 MB) # Note that download success or failure is logged by the client, and not by the server. resourcepack-url: 'https://raidersheaven.eu/download/
%C2%A7cRHPureAntiXRAYPack_v2.zip'
# Delay before the player gets the resourcepack prompt prompt:
delay: 4
# ticks
# Message settings; placeholders: %prefix%, %player% messages:
prefix: '&8
[&
#813dd8&lR♨db&le&#af27dd&ls&#c61ce0&lo&#dd11e2&lu&#f406e5&lr&#f406e5&lc&#dd11e2&le&#c61ce0&lp&#af27dd&la♨db&lc̭dd8&lk&8]' player-kicked: "%prefix%\n\n&7You have been kicked!\n\n&7Please accept the server resourcepack.\n&c&lOtherwise you won't be able to play!\n\n&7Return to your Multiplayer screen, click on &8'&f&lEdit&8' &7and change &8'&f&lServer Resource Packs&8'&7 to &8'&f&lEnabled&8'&7." pack-accepted: '
%prefix% &7You''ve accepted the resourcepack. Thank you for playing fair!' pack-denied: '
%prefix% &7You''ve denied the resourcepack and will be kicked' pack-resent: '
%prefix% &7The resourcepack was resent' pack-skipped: '
%prefix% &7You skipped the resourcepack enforcement' reload: '
%prefix% &7The configuration has been reloaded' wrong-argument: '
%prefix% &7This is not a valid argument' no-permission: '
%prefix% &7You don''t have permission' console-no-player: '
%prefix% &7You have to be a player to execute this command' console-accept: '
%prefix% &7Player &e%player% &7accepted the resourcepack enforcement' console-deny: '
%prefix% &7Player &e%player% &7denied the resourcepack enforcement' console-kick: '
%prefix% &7Player &e%player% &7has been kicked' console-skip: '
%prefix% &7Player &e%player% &7skipped the resourcepack enforcement' optional:
pack-loaded:
enabled: true
message: '
%prefix% &7The resourcepack has downloaded successfully'
+ added tested
1.19 support
+ added command
/rp resend with permission
rhfrp.resendall Resend the resourcepack for yourself. Be aware, that this is a debug function, as it only affects the player using that command!
+ added command
/rp resendall with permission
rhfrp.resendall Same as /rp resend, but affects all online players
# Just replace the default info with your own. :) # Be careful! Make always sure to put an ' after and before the text!
# General plugin output
# [DEU] Plugin Name für den Chat # [ENG] Plugin prefix for the chat chat-prefix: '&8
[&d&lRP&8
]'
# [DEU] Nachricht für den Reload Command # [ENG] Reload message reload-msg: '
%prefix% &7Die Config wurde &aneu geladen&7!'
# Do you want to have sounds, when executing commands? # https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html use-plugin-sounds: true
has-accepted-playsound: 'BLOCK_NOTE_BLOCK_BELL'
has-not-accepted-playsound: 'BLOCK_BEACON_DEACTIVATE'
# [DEU] Setzt die Länge der Verzögerung für den obigen Sound # [ENG] Sets the length of the delay for the above sound # default: 5 has-accepted-playsound-delay: 5
# [DEU] Setzt die Länge der Verzögerung für den Kick, in Sekunden # [ENG] Sets the length of the delay for the player kick, in seconds kick-main-delay: 10
# Data input
# [DEU] Setzt den Link zum Resourcepack fest. Das RP muss im .ZIP-Format sein und der Link muss einen direkten Download unterstützen! # [ENG] Sets the link to the resource pack. The RP must be in .ZIP format and the link must support a direct download! # You can delete this if you want. It's our private anti xray pack :) resourcepack-url: 'https://raidersheaven.eu/download/
%C2%A7cRHPureAntiXRAYPack_v2.zip'
# [DEU] Verzögerung in Ticks bevor der Spieler aufgefordert wird, das RP zu laden # [ENG] Delay in ticks before the player is asked to load the RP delay-in-ticks: 4
# [DEU] Wenn Spieler mit der 'RHFRP.skip' Berechtigung das Erzwingen eines Resourcepacks überspringen können # [ENG] If players with the 'RHFRP.skip' permission can skip a resourcepack force skip-permission-is-allowed: true
# [DEU] Kickt jeden Spieler beim Join, der das RP nicht akzeptiert # [ENG] Kicks every player on join, if they're not accepting the RP kick-player-on-deny: true
# [DEU] Sende eine Bestätigungsmeldung an den Spieler, wenn das RP erfolgreich heruntergeladen und aktiviert wurde # [ENG] Send a confirmation message to the player when the RP has been successfully downloaded and activated show-load-success-msg: true
# Message output
# [DEU] Wenn der Spieler das RP nicht akzeptieren will und gekickt wird # [ENG] If the player does not want to accept the RP and gets kicked # Supports all colorcodes '&', hex colors '#' and multiple lines with '\n' kick-msg: "%prefix%\n\n&7Du wurdest gekickt, da du unser &3&lResourcepack&7 nicht akzeptiert hast!\n\n&7Wir unterstützen keine &c&lXRAY&7 Pakete und wollen für \n&7alle Spieler eine &afaire &7und &abenutzerfreundliche &7Umgebung schaffen!\n\n&7Also trage auch du Deinen Teil dazu bei und &aakzeptiere \n&7das &3&lResourcepack &7um spielen zu koennen!\n\n&7Gegebenfalls musst du &3&lResourcepacks&7 in deinen &eServer-Einstellungen&7 manuell &aaktivieren&7!"
# [DEU] Wenn der Spieler das RP akzeptiert hat # [ENG] If the player has accepted the RP. load-success-msg: '
%prefix% &7Das &3&lResourcepack&7 wurde &aerfolgreich &7heruntergeladen!'
# [DEU] Wenn der Spieler keine Berechtigung hat # [ENG] If the player has no permission no-permission-msg: '
%prefix% &7Dazu hast du &ckeinen &7Zugriff.'
# [DEU] Wenn der Spieler das Resourcepack akzeptiert hat # [ENG] If the player has accepted the resourcepack has-accepted-msg: '
%prefix% &7Danke, dass Du &afair &7spielst! &d:)'
# [DEU] Wenn der Spieler das Resourcepack nicht akzeptiert hat, dann erhält er folgende Nachricht, bevor er mit einer Verzögerung gekickt wird # [ENG] If the player has not accepted the resourcepack, then the following message output is sent and then the player gets kicked with a delay has-not-accepted-msg: '
%prefix% &7Du hast das &3&lResourcepack&7 verweigert und wirst gekickt! &c:('
As always, if you find bugs or have an idea for improvement, please do not hesitate to open a discussion
here or send me a direct message.
And if you like my this or
my other plugins, then please leave a review!
~ fixed a wrong formatted code lineup and colorcodes
Please be advised, that you can't run the
/rhfrpreload command out of the console! You have to run it from ingame as a player.