From 94d74925f7f8304cde594233e44b939f93dea8ba Mon Sep 17 00:00:00 2001 From: theoparker24 <87245945+cytocracy@users.noreply.github.com> Date: Thu, 29 Jul 2021 13:52:11 -0700 Subject: [PATCH] closes issue #2 --- .../ParadisuPlugin/commands/snwcommands.java | 31 +++++++++++++++---- src/main/resources/plugin.yml | 2 +- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/src/main/java/me/jakedadream/ParadisuPlugin/commands/snwcommands.java b/src/main/java/me/jakedadream/ParadisuPlugin/commands/snwcommands.java index b2bcf76..97ca9d8 100644 --- a/src/main/java/me/jakedadream/ParadisuPlugin/commands/snwcommands.java +++ b/src/main/java/me/jakedadream/ParadisuPlugin/commands/snwcommands.java @@ -763,13 +763,32 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String } + if (owners.length() != 0){ + owners = owners.substring(0, owners.length() -2); + } + if (devs.length() != 0){ + devs = devs.substring(0, devs.length() -2); + + } + if (builders.length() != 0){ + builders = builders.substring(0, builders.length() -2); + + } + if (staff.length() != 0){ + staff = staff.substring(0, staff.length() -2); + + } + if (supporters.length() != 0){ + supporters = supporters.substring(0, supporters.length() -2); + + } + if (visitors.length() != 0){ + visitors = visitors.substring(0, visitors.length() -2); + + } + + - owners = owners.substring(0, owners.length() -2); - devs = devs.substring(0, devs.length() -2); - builders = builders.substring(0, builders.length() -2); - staff = staff.substring(0, staff.length() -2); - supporters = supporters.substring(0, supporters.length() -2); - visitors = visitors.substring(0, visitors.length() -2); player.sendMessage("§3§l============= §f" + onlineammount + " §d§oOnline Players §3§l=============\n" + " \n"); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 73118f8..e8cfedc 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: ParadisuPlugin -version: 2.6.2 +version: 2.6.3 authors: [JakeDaDream, RealInstantRamen, andyinnie, _Kastle, cytocracy] main: me.jakedadream.ParadisuPlugin.paradisumain api-version: 1.16