Skip to content

Commit

Permalink
move adjust command to the core
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 25, 2019
1 parent dc3e7ec commit 580967d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 130 deletions.
3 changes: 3 additions & 0 deletions plugin/src/main/java/net/aufdemrand/denizen/Denizen.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
import net.aufdemrand.denizencore.scripts.ScriptEntryData;
import net.aufdemrand.denizencore.scripts.ScriptHelper;
import net.aufdemrand.denizencore.scripts.ScriptRegistry;
import net.aufdemrand.denizencore.scripts.commands.core.AdjustCommand;
import net.aufdemrand.denizencore.scripts.queues.ScriptQueue;
import net.aufdemrand.denizencore.scripts.queues.core.InstantQueue;
import net.aufdemrand.denizencore.tags.TagContext;
Expand Down Expand Up @@ -563,6 +564,8 @@ public void onEnable() {
}

try {
AdjustCommand.specialAdjustables.put("server", ServerTags::adjustServer);

tagManager().registerCoreTags();

new CuboidTags(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,34 +88,6 @@ public void registerCoreMembers() {
"ACTIONBAR", "actionbar [<text>] (targets:<player>|...)", 1);


// <--[command]
// @Name Adjust
// @Syntax adjust [<dObject>|...] [<mechanism>](:<value>)
// @Required 2
// @Stable stable
// @Short Adjusts a dObjects mechanism.
// @Author aufdemrand
// @Group core
// @Video /denizen/vids/Properties%20and%20Mechanisms
//
// @Description
// Many dObjects contains options and properties that need to be adjusted. Denizen employs a mechanism
// interface to deal with those adjustments. To easily accomplish this, use this command with a valid object
// mechanism, and sometimes accompanying value.
//
// To adjust an item, use <@link command inventory>, as '- inventory adjust slot:<#> <mechanism>:<value>'.
//
// @Tags
// <entry[saveName].result> returns the adjusted object.
// <entry[saveName].result_list> returns a dList of adjusted objects.
//
// @Usage
// Use to set a custom display name on an entity.
// - adjust e@1000 'custom_name:ANGRY!'
// -->
registerCoreMember(AdjustCommand.class,
"ADJUST", "adjust [<dObject>|...] [<mechanism>](:<value>)", 2);

// <--[command]
// @Name Advancement
// @Syntax advancement [id:<name>] (delete/grant:<players>/revoke:<players>/{create}) (parent:<name>) (icon:<item>) (title:<text>) (description:<text>) (background:<key>) (frame:<type>) (toast:<boolean>) (announce:<boolean>) (hidden:<boolean>) (x:<offset>) (y:<offset>)
Expand Down

This file was deleted.

0 comments on commit 580967d

Please sign in to comment.