initial commit, basic plugin structure

This commit is contained in:
Paul Schulze
2013-03-18 16:13:44 +01:00
commit 08145f6317
10 changed files with 1151 additions and 0 deletions

View File

@ -0,0 +1,52 @@
/* Craft Inc. BorderProtection
Copyright (C) 2013 Paul Schulze, Maximilian Häckel
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package de.craftinc.replicator;
import org.bukkit.configuration.serialization.ConfigurationSerialization;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
public class Plugin extends JavaPlugin
{
public static JavaPlugin instance;
@Override
public void onLoad()
{
ConfigurationSerialization.registerClass(Replicator.class);
}
@Override
public void onDisable()
{
}
@Override
public void onEnable()
{
Plugin.instance = this;
// create listeners
// commands
Commands commandExecutor = new Commands();
getCommand("replicate").setExecutor(commandExecutor);
// register listeners
PluginManager pm = this.getServer().getPluginManager();
}
}

View File

@ -0,0 +1,29 @@
# Craft Inc. Replicator
# Copyright (C) 2013 Paul Schulze, Maximilian Häckel
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
name: Craft Inc. Replicator
main: de.craftinc.replicator.Plugin
version: ${project.version}
softdepend: [Multiverse-Core]
authors: [ddidderr, beuth_el_max]
website: http://www.craftinc.de/craftinc-replicator
commands:
replicate:
description: Shows help for Craft Inc. Replicate
permissions: