mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-10 17:41:48 +01:00
Blabla
This commit is contained in:
parent
c420568cb9
commit
bc33ed5824
@ -9,7 +9,7 @@ import java.io.InputStreamReader;
|
|||||||
|
|
||||||
public class MAMessages
|
public class MAMessages
|
||||||
{
|
{
|
||||||
public static void init(MobArena plugin) {
|
public static void init(MobArenaPlugin plugin) {
|
||||||
// Grab the file
|
// Grab the file
|
||||||
File msgFile = new File(MobArena.dir, "anouncements.properties");
|
File msgFile = new File(MobArena.dir, "anouncements.properties");
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ public class MobArena extends JavaPlugin implements MobArenaPlugin
|
|||||||
// Set up the ArenaMaster and the announcements
|
// Set up the ArenaMaster and the announcements
|
||||||
am = new ArenaMasterStandard(this);
|
am = new ArenaMasterStandard(this);
|
||||||
am.initialize();
|
am.initialize();
|
||||||
System.out.println(am.arenas);
|
|
||||||
MAMessages.init(this);
|
MAMessages.init(this);
|
||||||
|
|
||||||
// Register event listeners
|
// Register event listeners
|
||||||
|
@ -2,11 +2,35 @@ package com.garbagemule.MobArena;
|
|||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
|
import com.garbagemule.MobArena.util.Config;
|
||||||
|
|
||||||
public interface MobArenaPlugin
|
public interface MobArenaPlugin
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Get the Config object associated with this MobArena instance.
|
||||||
|
* @return the Config object used by MobArena
|
||||||
|
*/
|
||||||
|
public Config getMAConfig();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the ArenaMaster used by this instance of MobArena.
|
||||||
|
* @return the ArenaMaster object
|
||||||
|
*/
|
||||||
public ArenaMaster getArenaMaster();
|
public ArenaMaster getArenaMaster();
|
||||||
|
|
||||||
public void tell(CommandSender sender, String msg);
|
/**
|
||||||
|
* Send a message to a player or the console.
|
||||||
|
* The message is prefixed with [MobArena].
|
||||||
|
* @param recipient the player or console to send the message to
|
||||||
|
* @param msg the message to send
|
||||||
|
*/
|
||||||
|
public void tell(CommandSender recipient, String msg);
|
||||||
|
|
||||||
public void tell(CommandSender sender, Msg msg);
|
/**
|
||||||
|
* Send a predefined announcement to a player or the console.
|
||||||
|
* Convenience method: the above method is called with Msg.toString()
|
||||||
|
* @param recipient the player or console to send the message to
|
||||||
|
* @param msg the message to send
|
||||||
|
*/
|
||||||
|
public void tell(CommandSender recipient, Msg msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user