Listener for Barrel breaking -> LWC Support

This commit is contained in:
Sn0wStorm
2014-04-08 16:11:20 +02:00
parent 3155bbab63
commit 1c6fe6cc33
19 changed files with 790 additions and 227 deletions
+2 -4
View File
@@ -11,8 +11,6 @@ import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.block.SignChangeEvent;
import com.dre.brewery.BPlayer;
public class Words {
// represends Words and letters, that are replaced in drunk players messages
@@ -231,7 +229,7 @@ public class Words {
// remove all "from" and split "words" there
String[] splitted = words.split(from);
int index = 0;
String part = null;
String part;
// if there are occurences of "from"
if (splitted.length > 1) {
@@ -272,7 +270,7 @@ public class Words {
boolean isBefore = !match;
if (pre != null) {
for (String pr : pre) {
if (match == true) {
if (match) {
// if one is correct, it is enough
if (part.endsWith(pr) == match) {
isBefore = true;