mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
0.8.6
This commit is contained in:
parent
4d09cab58d
commit
b762e93340
@ -81,7 +81,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this);
|
pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this);
|
||||||
pm.registerEvent(Event.Type.BLOCK_DAMAGED, blockListener, Priority.Normal, this);
|
pm.registerEvent(Event.Type.BLOCK_DAMAGED, blockListener, Priority.Normal, this);
|
||||||
pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Priority.Monitor, this);
|
pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Priority.Monitor, this);
|
||||||
pm.registerEvent(Event.Type.PLAYER_COMMAND_PREPROCESS, playerListener, Priority.Normal, this);
|
pm.registerEvent(Event.Type.PLAYER_COMMAND_PREPROCESS, playerListener, Priority.High, this);
|
||||||
pm.registerEvent(Event.Type.ENTITY_DEATH, entityListener, Priority.Normal, this);
|
pm.registerEvent(Event.Type.ENTITY_DEATH, entityListener, Priority.Normal, this);
|
||||||
pm.registerEvent(Event.Type.BLOCK_FLOW, blockListener, Priority.Normal, this);
|
pm.registerEvent(Event.Type.BLOCK_FLOW, blockListener, Priority.Normal, this);
|
||||||
pm.registerEvent(Event.Type.BLOCK_PLACED, blockListener, Priority.Normal, this);
|
pm.registerEvent(Event.Type.BLOCK_PLACED, blockListener, Priority.Normal, this);
|
||||||
@ -106,6 +106,20 @@ public class mcMMO extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public boolean isPartyChatToggled(Player player){
|
||||||
|
if(mcConfig.getInstance().isPartyToggled(player.getName())){
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public boolean isAdminChatToggled(Player player){
|
||||||
|
if(mcConfig.getInstance().isAdminToggled(player.getName())){
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Permissions getPermissions() {
|
public Permissions getPermissions() {
|
||||||
return permissions;
|
return permissions;
|
||||||
|
@ -113,7 +113,7 @@ public class mcPlayerListener extends PlayerListener {
|
|||||||
mcm.getInstance().repairCheck(player, is, block);
|
mcm.getInstance().repairCheck(player, is, block);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void onPlayerCommandPreprocess(PlayerChatEvent event) {
|
public void onPlayerCommandPreproccesss(PlayerChatEvent event){
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
String[] split = event.getMessage().split(" ");
|
String[] split = event.getMessage().split(" ");
|
||||||
String playerName = player.getName();
|
String playerName = player.getName();
|
||||||
|
@ -110,7 +110,7 @@ public class mcm {
|
|||||||
for(Player x : plugin.getServer().getOnlinePlayers()){
|
for(Player x : plugin.getServer().getOnlinePlayers()){
|
||||||
if(x != null && damaged != null){
|
if(x != null && damaged != null){
|
||||||
CraftPlayer cp = (CraftPlayer)x;
|
CraftPlayer cp = (CraftPlayer)x;
|
||||||
if(x.getEntityId() != damaged.getEntityId())
|
if(cp != null && x != null && damaged != null && x.getEntityId() != damaged.getEntityId())
|
||||||
cp.getHandle().a.b(new Packet38EntityStatus(damaged.getEntityId(), (byte)2));
|
cp.getHandle().a.b(new Packet38EntityStatus(damaged.getEntityId(), (byte)2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
name: mcMMO
|
name: mcMMO
|
||||||
main: com.gmail.nossr50.mcMMO
|
main: com.gmail.nossr50.mcMMO
|
||||||
version: 0.8.5
|
version: 0.8.6
|
Loading…
Reference in New Issue
Block a user