mirror of
https://github.com/5vl/CorePlugin.git
synced 2025-05-23 19:37:02 +00:00
1.0.3.1
Not a nessecary update, just changed chat colors a bit
This commit is contained in:
parent
9ab0bd2abf
commit
0a2b9741ee
@ -1,16 +1,13 @@
|
||||
package coreplugin.coreplugin.commands;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import org.bukkit.ChatColor;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class discord implements CommandExecutor {
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
public class discord extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
boolean t;
|
||||
|
@ -1,17 +1,14 @@
|
||||
package coreplugin.coreplugin.commands;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class fly implements CommandExecutor {
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
public class fly extends chatcolors implements CommandExecutor {
|
||||
public boolean onCommand(CommandSender sender, Command command, String s, String[] strings) {
|
||||
if (sender.hasPermission("core.fly")) {
|
||||
Player p = (Player) sender;
|
||||
|
@ -1,20 +1,15 @@
|
||||
package coreplugin.coreplugin.commands.gamemodes;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class GMA implements CommandExecutor {
|
||||
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
|
||||
public class GMA extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String s, String[] strings) {
|
||||
if (sender.hasPermission("core.gma")) {
|
||||
|
@ -1,20 +1,15 @@
|
||||
package coreplugin.coreplugin.commands.gamemodes;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class GMC implements CommandExecutor {
|
||||
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
|
||||
public class GMC extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String s, String[] strings) {
|
||||
if (sender.hasPermission("core.gmc")) {
|
||||
|
@ -1,20 +1,15 @@
|
||||
package coreplugin.coreplugin.commands.gamemodes;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class GMS implements CommandExecutor {
|
||||
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
|
||||
public class GMS extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String s, String[] strings) {
|
||||
if (sender.hasPermission("core.gms")) {
|
||||
|
@ -1,20 +1,15 @@
|
||||
package coreplugin.coreplugin.commands.gamemodes;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class GMSP implements CommandExecutor {
|
||||
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
|
||||
public class GMSP extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String s, String[] strings) {
|
||||
if (sender.hasPermission("core.gmsp")) {
|
||||
|
@ -1,17 +1,14 @@
|
||||
package coreplugin.coreplugin.commands;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class heal implements CommandExecutor {
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
public class heal extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
if (sender.hasPermission("core.heal")) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
package coreplugin.coreplugin.commands.punish;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
@ -11,11 +12,7 @@ import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class ban implements CommandExecutor {
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
|
||||
public class ban extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
if (sender.hasPermission("core.ban")) {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package coreplugin.coreplugin.commands.punish;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
@ -10,11 +10,7 @@ import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class kick implements CommandExecutor {
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
|
||||
public class kick extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
if (sender.hasPermission("core.kick")) {
|
||||
|
@ -1,19 +1,16 @@
|
||||
package coreplugin.coreplugin.commands.punish;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.BanList;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class unban implements CommandExecutor {
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
public class unban extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
Player p = (Player) sender;
|
||||
|
@ -1,17 +1,13 @@
|
||||
package coreplugin.coreplugin.commands;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import org.bukkit.ChatColor;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class toggle implements CommandExecutor {
|
||||
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
public class toggle extends chatcolors implements CommandExecutor {
|
||||
public static boolean DiscordToggle;
|
||||
public static boolean JoinToggle;
|
||||
public static boolean LeaveToggle;
|
||||
|
@ -2,17 +2,13 @@ package coreplugin.coreplugin.events;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.commands.toggle;
|
||||
import org.bukkit.ChatColor;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.PlayerJoinEvent;
|
||||
|
||||
public class OnPlayerJoin implements Listener {
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
|
||||
public class OnPlayerJoin extends chatcolors implements Listener {
|
||||
@EventHandler
|
||||
public void OnPlayerJoin(PlayerJoinEvent event) {
|
||||
boolean t;
|
||||
|
@ -2,17 +2,13 @@ package coreplugin.coreplugin.events;
|
||||
|
||||
import coreplugin.coreplugin.Core;
|
||||
import coreplugin.coreplugin.commands.toggle;
|
||||
import org.bukkit.ChatColor;
|
||||
import coreplugin.coreplugin.utils.chatcolors;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
|
||||
public class OnPlayerLeave implements Listener {
|
||||
private String color(String string) {
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
|
||||
public class OnPlayerLeave extends chatcolors implements Listener {
|
||||
@EventHandler
|
||||
public void OnPlayerLeave(PlayerQuitEvent event){
|
||||
boolean t;
|
||||
|
5
java/coreplugin/coreplugin/utils/chatcolors.java
Normal file
5
java/coreplugin/coreplugin/utils/chatcolors.java
Normal file
@ -0,0 +1,5 @@
|
||||
package coreplugin.coreplugin.utils;
|
||||
import org.bukkit.ChatColor;
|
||||
public class chatcolors {
|
||||
public String color(String string){return ChatColor.translateAlternateColorCodes('&', string);}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user