Actually fixed chatalias imports this time.
This commit is contained in:
parent
74819a80cc
commit
fc37f84884
@ -25,13 +25,14 @@ import com.redstoner.misc.Utils;
|
|||||||
import com.redstoner.modules.Module;
|
import com.redstoner.modules.Module;
|
||||||
|
|
||||||
@AutoRegisterListener
|
@AutoRegisterListener
|
||||||
@Version(major = 1, minor = 0, revision = 5, compatible = 1)
|
@Version(major = 1, minor = 0, revision = 6, compatible = 1)
|
||||||
public class Chatalias implements Module, Listener
|
public class Chatalias implements Module, Listener
|
||||||
{
|
{
|
||||||
// to export chatalias data to json:
|
// to export chatalias data to json:
|
||||||
// pyeval [save_json_file("aliases/" + uuid, shared['modules']['chatalias'].data[uuid]) for uuid in shared['modules']['chatalias'].data]
|
// pyeval [save_json_file("aliases/" + uuid, shared['modules']['chatalias'].data[uuid]) for uuid in shared['modules']['chatalias'].data]
|
||||||
// HANDLE WITH CARE! This will create an array of null entries the size of len(data)!
|
// HANDLE WITH CARE! This will create an array of null entries the size of len(data)!
|
||||||
private boolean enabled = false;
|
private boolean enabled = false;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private final String[] commands = new String[] {"e?r", "e?m", "e?t", "e?w", "e?msg", "e?message", "e?whisper",
|
private final String[] commands = new String[] {"e?r", "e?m", "e?t", "e?w", "e?msg", "e?message", "e?whisper",
|
||||||
"e?me", "cg say", "ac"};
|
"e?me", "cg say", "ac"};
|
||||||
private JSONObject defaults = new JSONObject();
|
private JSONObject defaults = new JSONObject();
|
||||||
@ -105,7 +106,7 @@ public class Chatalias implements Module, Listener
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
changed = true;
|
changed = true;
|
||||||
playerAliases.put(key, "N: " + keyword);
|
playerAliases.put("N: " + key, replacement);
|
||||||
}
|
}
|
||||||
event.setMessage(event.getMessage().replace(keyword, replacement));
|
event.setMessage(event.getMessage().replace(keyword, replacement));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user