mirror of
https://github.com/TotalFreedomMC/VulnerabilityPatcher.git
synced 2024-05-27 15:11:18 +00:00
48e75813ae
The first release on the Spigot forums, made a large step from v0.5.1 to v1.0. Added 1.13 and 1.14 support that works for both Spigot and Paper. Also fixed additional issues with 1.14 and added a "full" solve to negative colors.
73 lines
3.6 KiB
Java
73 lines
3.6 KiB
Java
package me.cooljwb.vulnerabilitypatcher;
|
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
/*
|
|
* Copyright 2019 CoolJWB
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
/**
|
|
* @author CoolJWB
|
|
*/
|
|
|
|
public enum SMG {
|
|
|
|
VULNERABILITYPATCHER("&8[&3V&bP&8] "),
|
|
VULNERABILITYPATCHER_HELP("&8&l&m-------------&r &8[&3V&bP&8] &8&l&m-------------&r\n" +
|
|
"&8 - &7/vp help &aShow the plugin commands.\n" +
|
|
"&8 - &7/vp version &aGet the plugin version.\n" +
|
|
"&8 - &7/vp reload &aReload the plugin.\n" +
|
|
"&8 - &7/vp delete <player> &aDeletes a players data fully.\n" +
|
|
"&8 - &7/getnbt &aPrint the item in hands NBT.\n" +
|
|
"\n" +
|
|
"&8&l&m------------&r &8[&cCONF&8] &8&l&m------------&r\n" +
|
|
"&8 - &7/vp blocktag <entity> &aBlocks an entity in custom mob eggs.\n" +
|
|
"&8 - &7/vp unblocktag <entity> &aUnblocks an entity in custom mob eggs.\n" +
|
|
"&8 - &7/vp enablepatch <patch> &aEnables an exploit patch.\n" +
|
|
"&8 - &7/vp disablepatch <patch> &aDisables an exploit patch."),
|
|
|
|
ITEM(SMG.VULNERABILITYPATCHER.msg + "&cThis item is not allowed."),
|
|
ITEMS(SMG.VULNERABILITYPATCHER.msg + "&cAn item in your inventory has been cleared for being potentially dangerous."),
|
|
ITEM_IN_CONTAINER(SMG.VULNERABILITYPATCHER.msg + "&cAn item in this container is not allowed."),
|
|
ITEM_NOTIFY(SMG.VULNERABILITYPATCHER.msg + "&c%s tried to %s a %s at x:%s y:%s z:%s"),
|
|
|
|
BLOCK(SMG.VULNERABILITYPATCHER.msg + "&cThis block is not allowed."),
|
|
|
|
SWITCH(SMG.VULNERABILITYPATCHER.msg + "&cDo not switch items repeatedly."),
|
|
|
|
VERSION(SMG.VULNERABILITYPATCHER.msg + "&7This server utilizes %s-%s made by %s"),
|
|
NO_PERMISSION(SMG.VULNERABILITYPATCHER.msg + "&cYou do not have permission to do this."),
|
|
NOT_PLAYER(SMG.VULNERABILITYPATCHER.msg + "&cThis command can only be done in game."),
|
|
UNKNOWN_ARGUMENT(SMG.VULNERABILITYPATCHER.msg + "&cUnknown argument."),
|
|
PLAYER_NOT_FOUND(SMG.VULNERABILITYPATCHER.msg + "&cPlayer %s could not be found."),
|
|
REMOVED_DATA(SMG.VULNERABILITYPATCHER.msg + "&cRemoved all userdata from player %s."),
|
|
|
|
GET_ITEM_IN_MAINHAND(SMG.VULNERABILITYPATCHER.msg + "&cGet an item in your hand."),
|
|
NO_TAG(SMG.VULNERABILITYPATCHER.msg + "&cThis item has no tag."),
|
|
TOO_LARGE_ITEM(SMG.VULNERABILITYPATCHER.msg + "&cItem was too large."),
|
|
|
|
BLOCKED_TAGS(SMG.VULNERABILITYPATCHER.msg + "&aBlocked tag %s in all monster eggs."),
|
|
UNBLOCKED_TAGS(SMG.VULNERABILITYPATCHER.msg + "&cUnblocked tag %s in all monster eggs."),
|
|
|
|
ENABLED_PATCH(SMG.VULNERABILITYPATCHER.msg + "&aEnabled Patch %s."),
|
|
DISABLED_PATCH(SMG.VULNERABILITYPATCHER.msg + "&cDisabled Patch %s.");
|
|
|
|
public String msg;
|
|
SMG(String message) {
|
|
this.msg = ChatColor.translateAlternateColorCodes('&', message);
|
|
}
|
|
|
|
}
|