mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-02-11 01:41:52 +01:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
3fb0df4d5e
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
name: Vault
|
name: Vault
|
||||||
main: net.milkbowl.vault.Vault
|
main: net.milkbowl.vault.Vault
|
||||||
version: 1.2.18-b${BUILD_NUMBER}
|
version: 1.2.19-b${BUILD_NUMBER}
|
||||||
authors: [cereal, Sleaker, mung3r]
|
authors: [cereal, Sleaker, mung3r]
|
||||||
website: http://dev.bukkit.org/server-mods/vault
|
website: http://dev.bukkit.org/server-mods/vault
|
||||||
load: startup
|
load: startup
|
||||||
|
4
pom.xml
4
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.milkbowl.vault</groupId>
|
<groupId>net.milkbowl.vault</groupId>
|
||||||
<artifactId>Vault</artifactId>
|
<artifactId>Vault</artifactId>
|
||||||
<version>1.2.18-SNAPSHOT</version>
|
<version>1.2.19-SNAPSHOT</version>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
@ -149,7 +149,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>in.mDev</groupId>
|
<groupId>in.mDev</groupId>
|
||||||
<artifactId>mChatSuite</artifactId>
|
<artifactId>mChatSuite</artifactId>
|
||||||
<version>DEV-b216</version>
|
<version>DEV-b275</version>
|
||||||
<scope>system</scope>
|
<scope>system</scope>
|
||||||
<systemPath>${project.basedir}/lib/mChatSuite.jar</systemPath>
|
<systemPath>${project.basedir}/lib/mChatSuite.jar</systemPath>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
*/
|
*/
|
||||||
package net.milkbowl.vault.chat.plugins;
|
package net.milkbowl.vault.chat.plugins;
|
||||||
|
|
||||||
|
import com.miraclem4n.mchat.api.Reader;
|
||||||
|
import com.miraclem4n.mchat.api.Writer;
|
||||||
|
import com.miraclem4n.mchat.types.InfoType;
|
||||||
import in.mDev.MiracleM4n.mChatSuite.mChatSuite;
|
import in.mDev.MiracleM4n.mChatSuite.mChatSuite;
|
||||||
import in.mDev.MiracleM4n.mChatSuite.api.Reader;
|
|
||||||
import in.mDev.MiracleM4n.mChatSuite.api.Writer;
|
|
||||||
import in.mDev.MiracleM4n.mChatSuite.types.InfoType;
|
|
||||||
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
@ -38,8 +38,6 @@ 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 Reader mReader = null;
|
|
||||||
private Writer mWriter = null;
|
|
||||||
|
|
||||||
public Chat_mChatSuite(Plugin plugin, Permission perms) {
|
public Chat_mChatSuite(Plugin plugin, Permission perms) {
|
||||||
super(perms);
|
super(perms);
|
||||||
@ -52,8 +50,6 @@ public class Chat_mChatSuite extends Chat {
|
|||||||
Plugin chat = plugin.getServer().getPluginManager().getPlugin("mChatSuite");
|
Plugin chat = plugin.getServer().getPluginManager().getPlugin("mChatSuite");
|
||||||
if (chat != null && chat.isEnabled()) {
|
if (chat != null && chat.isEnabled()) {
|
||||||
mChat = (mChatSuite) chat;
|
mChat = (mChatSuite) chat;
|
||||||
mReader = mChat.getReader();
|
|
||||||
mWriter = mChat.getWriter();
|
|
||||||
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "mChatSuite"));
|
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "mChatSuite"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -67,8 +63,6 @@ public class Chat_mChatSuite extends Chat {
|
|||||||
Plugin chat = plugin.getServer().getPluginManager().getPlugin("mChatSuite");
|
Plugin chat = plugin.getServer().getPluginManager().getPlugin("mChatSuite");
|
||||||
if (chat != null) {
|
if (chat != null) {
|
||||||
mChat = (mChatSuite) chat;
|
mChat = (mChatSuite) chat;
|
||||||
mReader = mChat.getReader();
|
|
||||||
mWriter = mChat.getWriter();
|
|
||||||
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "mChatSuite"));
|
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "mChatSuite"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -79,8 +73,6 @@ public class Chat_mChatSuite extends Chat {
|
|||||||
if (mChat != null) {
|
if (mChat != null) {
|
||||||
if (event.getPlugin().getDescription().getName().equals("mChatSuite")) {
|
if (event.getPlugin().getDescription().getName().equals("mChatSuite")) {
|
||||||
mChat = null;
|
mChat = null;
|
||||||
mReader = null;
|
|
||||||
mWriter = null;
|
|
||||||
log.info(String.format("[%s][Chat] %s un-hooked.", plugin.getDescription().getName(), "mChatSuite"));
|
log.info(String.format("[%s][Chat] %s un-hooked.", plugin.getDescription().getName(), "mChatSuite"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -99,7 +91,7 @@ public class Chat_mChatSuite extends Chat {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPlayerPrefix(String world, String player) {
|
public String getPlayerPrefix(String world, String player) {
|
||||||
return mReader.getPrefix(player, InfoType.USER, world);
|
return Reader.getPrefix(player, InfoType.USER, world);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -109,7 +101,7 @@ public class Chat_mChatSuite extends Chat {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPlayerSuffix(String world, String player) {
|
public String getPlayerSuffix(String world, String player) {
|
||||||
return mReader.getSuffix(player, InfoType.USER, world);
|
return Reader.getSuffix(player, InfoType.USER, world);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -119,7 +111,7 @@ public class Chat_mChatSuite extends Chat {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getGroupPrefix(String world, String group) {
|
public String getGroupPrefix(String world, String group) {
|
||||||
return mReader.getPrefix(group, InfoType.GROUP, world);
|
return Reader.getPrefix(group, InfoType.GROUP, world);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -129,7 +121,7 @@ public class Chat_mChatSuite extends Chat {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getGroupSuffix(String world, String group) {
|
public String getGroupSuffix(String world, String group) {
|
||||||
return mReader.getSuffix(group, InfoType.GROUP, world);
|
return Reader.getSuffix(group, InfoType.GROUP, world);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -269,24 +261,24 @@ public class Chat_mChatSuite extends Chat {
|
|||||||
|
|
||||||
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());
|
Writer.setWorldVar(player, InfoType.USER, world, node, value.toString());
|
||||||
} else {
|
} else {
|
||||||
mWriter.setInfoVar(player, InfoType.USER, node, value.toString());
|
Writer.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);
|
Writer.setWorldVar(group, InfoType.GROUP, world, node, value);
|
||||||
} else {
|
} else {
|
||||||
mWriter.setInfoVar(group, InfoType.GROUP, node, value);
|
Writer.setInfoVar(group, InfoType.GROUP, node, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
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 Reader.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 Reader.getInfo(group, InfoType.GROUP, world, node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user