mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fixed prefixes being sent when not supposed to, and updated the link in /plot plugin
This commit is contained in:
		@@ -71,10 +71,10 @@ public class plugin extends SubCommand {
 | 
			
		||||
                final ArrayList<String> strings = new ArrayList<String>() {
 | 
			
		||||
                    // $2>> $1%id$2:$1%world $2- $1%owner
 | 
			
		||||
                    {
 | 
			
		||||
                        add(String.format("$2>> $1&lPlotSquared $2(Version$2: $1%s$2)", PS.get().IMP.getVersion()));
 | 
			
		||||
                        add(String.format("$2>> $1&lPlotSquared $2($1Version$2: $1%s$2)", PS.get().IMP.getVersion()));
 | 
			
		||||
                        add(String.format("$2>> $1&lAuthors$2: $1Citymonstret $2& $1Empire92"));
 | 
			
		||||
                        add(String.format("$2>> $1&lWiki$2: $1https://github.com/IntellectualCrafters/PlotSquared/wiki"));
 | 
			
		||||
                        add(String.format("$2>> $1&lWebsite$2: $1http://plotsquared.co"));
 | 
			
		||||
                        add(String.format("$2>> $1&lWebsite$2: $1http://plotsquared.com"));
 | 
			
		||||
                        add(String.format("$2>> $1&lNewest Version$2: $1" + (PS.get().update == null ? PS.get().IMP.getVersion() : PS.get().update)));
 | 
			
		||||
                    }
 | 
			
		||||
                };
 | 
			
		||||
 
 | 
			
		||||
@@ -1320,9 +1320,9 @@ public class MainUtil {
 | 
			
		||||
    public static boolean sendMessage(final PlotPlayer plr, String msg, final boolean prefix) {
 | 
			
		||||
        if ((msg.length() > 0) && !msg.equals("")) {
 | 
			
		||||
            if (plr == null) {
 | 
			
		||||
                PS.log(C.PREFIX.s() + msg);
 | 
			
		||||
                PS.log((prefix ? C.PREFIX.s() : "") + msg);
 | 
			
		||||
            } else {
 | 
			
		||||
                plr.sendMessage(C.PREFIX.s() + C.color(msg));
 | 
			
		||||
                plr.sendMessage((prefix ? C.PREFIX.s() : "") + C.color(msg));
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        return true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user