Another mChatSuite Dev build Update, Fixed an entry in your POM as well

This commit is contained in:
MiracleM4n 2012-04-10 03:09:16 -04:00
parent 43f5d906db
commit d79c9a8bf0
3 changed files with 11 additions and 9 deletions

Binary file not shown.

View File

@ -171,6 +171,8 @@
<groupId>ru.tehkode</groupId> <groupId>ru.tehkode</groupId>
<artifactId>PermissionsEx</artifactId> <artifactId>PermissionsEx</artifactId>
<version>1.20-SNAPSHOT</version> <version>1.20-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/PermissionsEx.jar</systemPath>
</dependency> </dependency>
<dependency> <dependency>
<groupId>de.bananaco.permissions.Permissions</groupId> <groupId>de.bananaco.permissions.Permissions</groupId>

View File

@ -16,9 +16,9 @@
package net.milkbowl.vault.chat.plugins; package net.milkbowl.vault.chat.plugins;
import in.mDev.MiracleM4n.mChatSuite.mChatSuite; import in.mDev.MiracleM4n.mChatSuite.mChatSuite;
import in.mDev.MiracleM4n.mChatSuite.api.InfoReader; import in.mDev.MiracleM4n.mChatSuite.api.Reader;
import in.mDev.MiracleM4n.mChatSuite.api.InfoType; import in.mDev.MiracleM4n.mChatSuite.api.Writer;
import in.mDev.MiracleM4n.mChatSuite.api.InfoWriter; import in.mDev.MiracleM4n.mChatSuite.types.InfoType;
import java.util.logging.Logger; import java.util.logging.Logger;
import net.milkbowl.vault.chat.Chat; import net.milkbowl.vault.chat.Chat;
@ -37,8 +37,8 @@ public class Chat_mChatSuite extends Chat {
private final String name = "mChatSuite"; private final String name = "mChatSuite";
private Plugin plugin = null; private Plugin plugin = null;
private mChatSuite mChat = null; private mChatSuite mChat = null;
private InfoReader mReader = null; private Reader mReader = null;
private InfoWriter mWriter = null; private Writer mWriter = null;
public Chat_mChatSuite(Plugin plugin, Permission permissions) { public Chat_mChatSuite(Plugin plugin, Permission permissions) {
super(permissions); super(permissions);
@ -77,7 +77,7 @@ public class Chat_mChatSuite extends Chat {
} }
} }
} }
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
public void onPluginDisable(PluginDisableEvent event) { public void onPluginDisable(PluginDisableEvent event) {
if (this.chat.mChat != null) { if (this.chat.mChat != null) {
@ -270,7 +270,7 @@ public class Chat_mChatSuite extends Chat {
public void setGroupInfoString(String world, String group, String node, String value) { public void setGroupInfoString(String world, String group, String node, String value) {
setGroupInfoValue(world, group, node, value); setGroupInfoValue(world, group, node, value);
} }
private void setPlayerInfoValue(String world, String player, String node, Object value) { private void setPlayerInfoValue(String world, String player, String node, Object value) {
if (world != null) { if (world != null) {
mWriter.setWorldVar(player, InfoType.USER, world, node, value.toString()); mWriter.setWorldVar(player, InfoType.USER, world, node, value.toString());
@ -278,7 +278,7 @@ public class Chat_mChatSuite extends Chat {
mWriter.setInfoVar(player, InfoType.USER, node, value.toString()); mWriter.setInfoVar(player, InfoType.USER, node, value.toString());
} }
} }
private void setGroupInfoValue(String world, String group, String node, Object value) { private void setGroupInfoValue(String world, String group, String node, Object value) {
if (world != null) { if (world != null) {
mWriter.setWorldVar(group, InfoType.GROUP, world, node, value); mWriter.setWorldVar(group, InfoType.GROUP, world, node, value);
@ -289,7 +289,7 @@ public class Chat_mChatSuite extends Chat {
private String getPlayerInfoValue(String world, String player, String node) { private String getPlayerInfoValue(String world, String player, String node) {
return mReader.getInfo(player, InfoType.USER, world, node); return mReader.getInfo(player, InfoType.USER, world, node);
} }
private String getGroupInfoValue(String world, String group, String node) { private String getGroupInfoValue(String world, String group, String node) {
return mReader.getInfo(group, InfoType.GROUP, world, node); return mReader.getInfo(group, InfoType.GROUP, world, node);
} }