Namespace
Nichts opened this issue ยท 6 comments
Could you create namespaced versions the all the commands (like owhome in addition to home) to avoid conflicts with other plugins (like commandbook)
Check build 117 from Jenkins.
This doesn't work for two reasons
- You don't register the namespace versions in plugins.yml so you can't actually use them or even re-route them with bukkit.yml
- It would be nicer if you had access to both warp and owwarp at the same time because what i do is resolve any collisions with bukkit.yml by doing something like this:
warp:
- owwarp
but i don't want to have to do this for every command just because i have one collision
So the namespace version is not owwarp
but ow warp
, so that I only register ow
in plugins.yml
. Would you rather single-word namespaced commands?
I don't think this solves your alias problem - I'll have to think about that. Reopening.
You actually just have to define it as an alias (i already did the changes to the 1.1 version which i'm using on my server) you can find everything here
http://dl.dropbox.com/u/2547910/OpenWarp.zip
I just didn't create a pull request because the change is really small and I don't really know how to reexport this to github without forking it first
its basically just this in OWCommand.java
@OverRide
public void addKey(String key, int minArgs, int maxArgs) {
super.addKey(key, minArgs, maxArgs);
Add this line -> super.addKey("ow" + key, minArgs, maxArgs);
}
and change plugins.yml to something like this (for every command of course)
warp:
description: Manipulate warp points
usage: /
add this -> aliases: owwarp
thinking about it just editing the plugin.yml and adding the aliases might be nought but i'm not really sure how it interacts with command execution