Skip to content

Loading…

mmoCore Update #23

Closed
wants to merge 1 commit into from

2 participants

@mcsnetworks
mmoMinecraftDev member

he following changes since commit 7df00cd:

More 1.2.5 Updates. Changed mmoChat to Abstract Class. Updated Version #. (2012-04-15 21:30:54 -0500)

are available in the git repository at:

https://github.com/mmoMinecraftDev/mmoCore.git

for you to fetch changes up to 7df00cd:

More 1.2.5 Updates. Changed mmoChat to Abstract Class. Updated Version #. (2012-04-15 21:30:54 -0500)


@mcsnetworks mcsnetworks More 1.2.5 Updates.
Changed mmoChat to Abstract Class.
Updated Version #.
c864de9
@Rycochet Rycochet commented on the diff
src/main/resources/plugin.yml
@@ -1,8 +1,8 @@
name: mmoCore
main: mmo.Core.MMOCore
-version: 2.3
@Rycochet mmoMinecraftDev member

Please don't change version numbers unless Jenkins is running - it triggers automatic updates when it does work ;-)

Wanting to update the major version number for all these anyway, considering they're not compatible with the previous versions...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@Rycochet Rycochet commented on the diff
src/main/resources/mmoMinecraft.sql
@@ -1,11 +0,0 @@
@Rycochet mmoMinecraftDev member

This file is actually required...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 16, 2012
  1. @mcsnetworks

    More 1.2.5 Updates.

    mcsnetworks committed
    Changed mmoChat to Abstract Class.
    Updated Version #.
View
38 src/main/java/mmo/Core/ChatAPI/MMOChatEvent.java
@@ -20,14 +20,26 @@
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
+import org.bukkit.event.Event;
+import org.bukkit.event.HandlerList;
-public interface MMOChatEvent extends Cancellable {
+public abstract class MMOChatEvent extends Event implements Cancellable {
+ private static final HandlerList handlers = new HandlerList();
+
+ public HandlerList getHandlers() {
+ return handlers;
+ }
+
+ public static HandlerList getHandlerList() {
+ return handlers;
+ }
+
/**
* Check if a filter is supposed to be used.
* @param filter the name of the filter
* @return if it should be used
*/
- boolean hasFilter(String filter);
+ public abstract boolean hasFilter(String filter);
/**
* Get the args supplied for the filter.
@@ -36,33 +48,33 @@
* @param filter the name of the filter
* @return if it should be used
*/
- String[] getArgs(String filter);
+ public abstract String[] getArgs(String filter);
/**
* Set the message for a single player.
* @param player the Player getting a custom message
* @param message the custom message
*/
- void setMessage(Player player, String message);
+ public abstract void setMessage(Player player, String message);
/**
* Set the default message for all players.
* @param message the default message
*/
- void setMessage(String message);
+ public abstract void setMessage(String message);
/**
* Get the message for a single player, get the default message if no custom message exists.
* @param player the Player we're interested in
* @return the message for that player
*/
- String getMessage(Player player);
+ public abstract String getMessage(Player player);
/**
* Get the default message for all players.
* @return the default message
*/
- String getMessage();
+ public abstract String getMessage();
/**
* Set the default format string for all players.
@@ -72,7 +84,7 @@
* "%4$s" = Message.
* @param format the default format for all players
*/
- void setFormat(String format);
+ public abstract void setFormat(String format);
/**
* Set the format string for a single player.
@@ -83,7 +95,7 @@
* @param player the Player getting a custom format string
* @param format the format string for that player
*/
- void setFormat(Player player, String format);
+ public abstract void setFormat(Player player, String format);
/**
* Get the default format string for all players.
@@ -93,20 +105,20 @@
* "%4$s" = Message.
* @return the default format string
*/
- String getFormat();
+ public abstract String getFormat();
/**
* Get the format string for a single player.
* @param player the Player we're interested in
* @return the format string for that player
*/
- String getFormat(Player player);
+ public abstract String getFormat(Player player);
/**
* Get the player who sent the message.
* @return the player
*/
- Player getPlayer();
+ public abstract Player getPlayer();
/**
* Get the list of all players that can currently see the message.
@@ -114,5 +126,5 @@
* when they shouldn't see the output of this event.
* @return a list of players
*/
- Set<Player> getRecipients();
+ public abstract Set<Player> getRecipients();
}
View
11 src/main/resources/mmoMinecraft.sql
@@ -1,11 +0,0 @@
---
--- Table structure for table `mmoMinecraft`
---
-
-CREATE TABLE IF NOT EXISTS `mmoMinecraft` (
- `plugin` VARCHAR(64),
- `player` VARCHAR(64),
- `key` VARCHAR(256),
- `value` VARCHAR(2048),
- PRIMARY KEY (`plugin`,`player`,`key`)
-);
View
4 src/main/resources/plugin.yml
@@ -1,8 +1,8 @@
name: mmoCore
main: mmo.Core.MMOCore
-version: 2.3
@Rycochet mmoMinecraftDev member

Please don't change version numbers unless Jenkins is running - it triggers automatic updates when it does work ;-)

Wanting to update the major version number for all these anyway, considering they're not compatible with the previous versions...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+version: 2.4
website: http://forums.bukkit.org/threads/31054/
-author: Rycochet <rycochet@rycochet.com>
+author: Rycochet <rycochet@rycochet.com>, Zidane, Dockter
depend: [Spout]
description: Utility functions for mmo-minecraft
Something went wrong with that request. Please try again.