Skip to content

Commit

Permalink
fix weird jenkins exception with paragragh letter
Browse files Browse the repository at this point in the history
  • Loading branch information
wea_ondara committed Feb 9, 2016
1 parent 2fd6cfa commit 3fb5be7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
@@ -1,6 +1,7 @@
package net.alpenblock.bungeeperms.testsuite.bukkit.tests;

import net.alpenblock.bungeeperms.BungeePerms;
import net.alpenblock.bungeeperms.ChatColor;
import net.alpenblock.bungeeperms.User;
import net.alpenblock.bungeeperms.testsuite.bukkit.BukkitTest;
import net.alpenblock.bungeeperms.testsuite.bukkit.BukkitTestSuite;
Expand All @@ -24,8 +25,8 @@ public boolean test(CommandSender sender)
throw new RuntimeException("test player " + BukkitTestSuite.getTestplayer() + " not found");
}

sender.sendMessage("Prefix: " + u.buildPrefix().replaceAll("§", "&"));
sender.sendMessage("Suffix: " + u.buildSuffix().replaceAll("§", "&"));
sender.sendMessage("Prefix: " + u.buildPrefix().replaceAll("" + ChatColor.COLOR_CHAR, "&"));
sender.sendMessage("Suffix: " + u.buildSuffix().replaceAll("" + ChatColor.COLOR_CHAR, "&"));

return result();
}
Expand Down
@@ -1,6 +1,7 @@
package net.alpenblock.bungeeperms.testsuite.bukkit.tests;

import net.alpenblock.bungeeperms.BungeePerms;
import net.alpenblock.bungeeperms.ChatColor;
import net.alpenblock.bungeeperms.User;
import net.alpenblock.bungeeperms.testsuite.bukkit.BukkitTest;
import net.alpenblock.bungeeperms.testsuite.bukkit.BukkitTestSuite;
Expand Down Expand Up @@ -41,10 +42,10 @@ public boolean test(CommandSender sender)
throw new RuntimeException("vault: chat service provider is not bungeeperms");
}

sender.sendMessage("BP Prefix: " + u.buildPrefix().replaceAll("§", "&"));
sender.sendMessage("Vault Prefix: " + chat.getPlayerPrefix(Bukkit.getPlayer(BukkitTestSuite.getTestplayer())).replaceAll("§", "&"));
sender.sendMessage("BP Suffix: " + u.buildSuffix().replaceAll("§", "&"));
sender.sendMessage("Vault Suffix: " + chat.getPlayerSuffix(Bukkit.getPlayer(BukkitTestSuite.getTestplayer())).replaceAll("§", "&"));
sender.sendMessage("BP Prefix: " + u.buildPrefix().replaceAll("" + ChatColor.COLOR_CHAR, "&"));
sender.sendMessage("Vault Prefix: " + chat.getPlayerPrefix(Bukkit.getPlayer(BukkitTestSuite.getTestplayer())).replaceAll("" + ChatColor.COLOR_CHAR, "&"));
sender.sendMessage("BP Suffix: " + u.buildSuffix().replaceAll("" + ChatColor.COLOR_CHAR, "&"));
sender.sendMessage("Vault Suffix: " + chat.getPlayerSuffix(Bukkit.getPlayer(BukkitTestSuite.getTestplayer())).replaceAll("" + ChatColor.COLOR_CHAR, "&"));

return result();
}
Expand Down
@@ -1,6 +1,7 @@
package net.alpenblock.bungeeperms.testsuite.bungee.tests;

import net.alpenblock.bungeeperms.BungeePerms;
import net.alpenblock.bungeeperms.ChatColor;
import net.alpenblock.bungeeperms.User;
import net.alpenblock.bungeeperms.testsuite.bungee.BungeeTest;
import net.alpenblock.bungeeperms.testsuite.bungee.BungeeTestSuite;
Expand All @@ -24,8 +25,8 @@ public boolean test(CommandSender sender)
throw new RuntimeException("test player " + BungeeTestSuite.getTestplayer() + " not found");
}

sender.sendMessage("Prefix: " + u.buildPrefix().replaceAll("§", "&"));
sender.sendMessage("Suffix: " + u.buildSuffix().replaceAll("§", "&"));
sender.sendMessage("Prefix: " + u.buildPrefix().replaceAll("" + ChatColor.COLOR_CHAR, "&"));
sender.sendMessage("Suffix: " + u.buildSuffix().replaceAll("" + ChatColor.COLOR_CHAR, "&"));

return result();
}
Expand Down

0 comments on commit 3fb5be7

Please sign in to comment.