1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-21 11:13:00 +01:00

Freeze now uses playerSend instead of gmsg. Using say from console now logs correctly. Using stop from console now has a log. Masstp'd users can now tpback properly. Minor changes to the settings file. Possible onChat hook error fix.

This commit is contained in:
nossr50
2011-01-10 11:18:38 -08:00
parent ce6c242cf2
commit 03f73a0353
4 changed files with 106 additions and 73 deletions

View File

@@ -1,4 +1,5 @@
import java.io.*;
import java.lang.String;
import java.util.logging.Level;
import java.util.logging.Logger;
public class vmc {
@@ -44,7 +45,8 @@ String location = "groups.txt";
String groups[] = player.getGroups();
String groupline[] = null;
String prefix = Colors.White;
if(vConfig.getInstance().groupcoloredbrackets() && groups[0].toString().length() > 0){
int x = 0;
if(vConfig.getInstance().groupcoloredbrackets()){
//Read the file
properties = new PropertiesFile(location);
try {
@@ -53,6 +55,10 @@ String location = "groups.txt";
log.log(Level.SEVERE, "Exception while loading " + location, e);
}
//Grab the line with the same group as the player
for(String herp : groups){
x++;
}
if(x > 0)
groupline = properties.getString(groups[0]).split(":");
//Check if the prefix is null or not
if(!groupline[0].isEmpty())