Dimensions wiki
  • Get Started
  • Commands
  • General info
    • Worlds/Dimensions
    • How does it work?
  • Configuring Dimensions
    • Dimensions configuration
    • Portal configuration
    • Portal creator
      • Editing the portal
      • Extra options
      • Downloading the file
    • Addons
      • Free Addons
        • World guard flags addon
        • Patreon Cosmetics addon
        • Horizontal portals addon
        • ForceLink addon
        • LightAPI addon
      • Premium Addons
        • Unbreakable addon
        • HubWorld addon
        • Random location addon
        • Permissions addon
        • Biomes addon
        • DayLightSensor addon
        • Limited uses addon
        • Timed portals addon
        • Message on use addon
        • ChargeOnUse addon
        • Pasted portals addon
        • Custom lighter addon
        • Better portals addon
        • Commands on use addon
        • Stylish portals addon
        • Particles addon
          • Particles Editor
        • Bungee addon
          • Bungee setup
          • Velocity setup
          • Spigot/Paper setup
        • ModelEngine addon (BETA)
        • IgniteByEvent addon (BETA)
      • Third party addons
Powered by GitBook
On this page
  • What does it do?
  • How is it configured?

Was this helpful?

  1. Configuring Dimensions
  2. Addons
  3. Premium Addons

Commands on use addon

What does it do?

The addon gives you the ability to execute commands when a player uses the portal

How is it configured?

Addon:
  Commands:
    - '<input1>;<input2>;<input3>'
  • input1: who is going to execute the command (values= player or console)

  • input2: pre-conditions for the command to be executed. For example ((%destinationWorld%==world6 && %entity%==astaspasta) || %portal%==samplePortal) && %zAxis%. true can be used if you want the command to run anyway

  • input3: the command to execute.

For example tell %entity% you used a zAxis portal and its name is samplePortal or your name is astaspasta and you came from world6

If you plan to override the teleport of Dimensions (for example for a random location command) then It's recommended that you add the following to your portal config. (This addon option is provided by the CommandsOnUse addon)

Addon:
  DisableTeleport: true
Placeholders:
%portal% - Portal display name
%name% - Portal name
%entity% - Player name/Entity Type
%entityID% - Player UUID/Entity ID

%destinationWorld% - Destination world
%destinationX% - Destination X
%destinationY% - Destination Y
%destinationZ% - Destination Z

%originalWorld% - Original world
%originalX% - Original X
%originalY% - Original Y
%originalZ% - Original Z

%zAxis% - True if portal is Facing the X Axis (aka portal is build along the Z Axis

The CommandsOnUse Addon also supports PlaceholderAPI placeholders
PreviousBetter portals addonNextStylish portals addon

Last updated 2 years ago

Was this helpful?