Permalink
Browse files

Added some more simple defaults.

  • Loading branch information...
1 parent 831f792 commit 362825c63fadfa8af594e7a7919f3549db478646 @mkalus committed Jan 7, 2012
View
2 pom.xml
@@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.beimax.buycommand</groupId>
- <artifactId>buycommand</artifactId>
+ <artifactId>BuyCommand</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>BuyCommand</name>
<description>Bukkit/Minecraft plugin: Lets players pay for comamnds - uses Vault.</description>
View
8 src/main/java/de/beimax/buycommand/BuyCommand.java
@@ -74,6 +74,8 @@ public static String ll(String key, String... replacers) {
public void onEnable() {
// initialize plugin
log.info(this.toString() + " is loading.");
+
+ BuyCommand.buyCommand = this;
// configure plugin (configuration stuff)
configurePlugin();
@@ -105,6 +107,8 @@ public void onDisable() {
//save config to disk
this.saveConfig();
+
+ BuyCommand.buyCommand = null;
}
/**
@@ -179,7 +183,7 @@ private boolean setupEconomy() {
economy = economyProvider.getProvider();
}
- BuyCommand.log.info("[BuyCommand] Vault hooked as economy plugin.");
+ //BuyCommand.log.info("[BuyCommand] Vault hooked as economy plugin.");
return (economy != null);
}
economy = null; // if the plugin is reloaded during play, possibly kill economy
@@ -198,7 +202,7 @@ private boolean setupPermission() {
permission = permissionProvider.getProvider();
}
- BuyCommand.log.info("[BuyCommand] Vault hooked as permission plugin.");
+ //BuyCommand.log.info("[BuyCommand] Vault hooked as permission plugin.");
return (permission != null);
}
permission = null; // if the plugin is reloaded during play, possibly kill permissions
View
5 src/main/resources/lang_de.yml
@@ -0,0 +1,5 @@
+# Sprachdatei Deutsch (Language file German)
+errors:
+ noPermissionAtAll: 'Keine Berechtigungen für BuyCommand!'
+ permissionMissing: 'Dir fehlt die Berechtigung für das Kommando [COMMAND]. Du brauchst die Berechtigung buycommand.[COMMAND].'
+ unknownCommand: 'Unbekannter Befehl "[COMMAND]"'
View
5 src/main/resources/lang_en.yml
@@ -0,0 +1,5 @@
+# Language file English
+errors:
+ noPermissionAtAll: 'You do not possess permissions for BuyCommand!'
+ permissionMissing: 'You do not have the permission for the command [COMMAND]. You need the permission buycommand.[COMMAND].'
+ unknownCommand: 'Unknown command "[COMMAND]"'

0 comments on commit 362825c

Please sign in to comment.