Add warning for /ld scoreboard on tab user detected
This commit is contained in:
		| @@ -166,6 +166,10 @@ public class LDScoreboard implements LDCommand { | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         LibsMsg.LIBS_SCOREBOARD_SUCCESS.send(sender, team.getName()); |         LibsMsg.LIBS_SCOREBOARD_SUCCESS.send(sender, team.getName()); | ||||||
|  |  | ||||||
|  |         if (Bukkit.getPluginManager().getPlugin("TAB") != null) { | ||||||
|  |             LibsMsg.PLUGIN_TAB_DETECTED.send(sender); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|   | |||||||
| @@ -312,11 +312,15 @@ public enum LibsMsg { | |||||||
|     ITEM_SIMPLE_STRING_NO_COPY(ChatColor.GOLD + "Simple: " + ChatColor.YELLOW + "%s"), |     ITEM_SIMPLE_STRING_NO_COPY(ChatColor.GOLD + "Simple: " + ChatColor.YELLOW + "%s"), | ||||||
|     LIBS_SCOREBOARD_NO_TEAM(ChatColor.RED + "Not on a scoreboard team!"), |     LIBS_SCOREBOARD_NO_TEAM(ChatColor.RED + "Not on a scoreboard team!"), | ||||||
|     LIBS_SCOREBOARD_NO_TEAM_PUSH(ChatColor.RED + "On scoreboard team '%s' and pushing is enabled! (That's bad)"), |     LIBS_SCOREBOARD_NO_TEAM_PUSH(ChatColor.RED + "On scoreboard team '%s' and pushing is enabled! (That's bad)"), | ||||||
|  |     PLUGIN_TAB_DETECTED(ChatColor.RED + "TAB has been detected! This is a huge culprit! Check the TAB config and set " + | ||||||
|  |             ChatColor.GREEN + "enable-collision: true" + ChatColor.RED + " to " + ChatColor.DARK_GREEN + | ||||||
|  |             "enable-collision: false"), | ||||||
|     LIBS_SCOREBOARD_SUCCESS(ChatColor.GOLD + |     LIBS_SCOREBOARD_SUCCESS(ChatColor.GOLD + | ||||||
|             "On scoreboard team '%s' with pushing disabled! If you're still having issues and you are disguised right" + |             "On scoreboard team '%s' with pushing disabled! If you're still having issues and you are disguised right" + | ||||||
|             " now, then " + |             " now, then " + | ||||||
|             "you have a plugin modifying scoreboard through packets. Example of this is a plugin that modifies your " + |             "you have a plugin modifying scoreboard through packets. Example of this is a plugin that modifies your " + | ||||||
|             "name above head, or the tablist. Check their configs for pushing disabling options\nSay 'I read to the end' if you " + |             "name above head, or the tablist. Check their configs for pushing disabling options\nSay 'I read to the " + | ||||||
|  |             "end' if you " + | ||||||
|             "still need help with this, or we'll assume you can't read."), |             "still need help with this, or we'll assume you can't read."), | ||||||
|     LIBS_SCOREBOARD_DISABLED( |     LIBS_SCOREBOARD_DISABLED( | ||||||
|             "The scoreboard modification has been disabled in config, will continue the debug incase this is intended" + |             "The scoreboard modification has been disabled in config, will continue the debug incase this is intended" + | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user