mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-21 14:52:12 +01:00
1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
"use strict";(self.webpackChunkadvanced_portals_docs=self.webpackChunkadvanced_portals_docs||[]).push([[997],{3905:function(e,t,a){a.d(t,{Zo:function(){return p},kt:function(){return u}});var n=a(7294);function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function r(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){o(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function i(e,t){if(null==e)return{};var a,n,o=function(e,t){if(null==e)return{};var a,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(o[a]=e[a]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}var d=n.createContext({}),s=function(e){var t=n.useContext(d),a=t;return e&&(a="function"==typeof e?e(t):r(r({},t),e)),a},p=function(e){var t=s(e.components);return n.createElement(d.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,o=e.mdxType,l=e.originalType,d=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),m=s(a),u=o,h=m["".concat(d,".").concat(u)]||m[u]||c[u]||l;return a?n.createElement(h,r(r({ref:t},p),{},{components:a})):n.createElement(h,r({ref:t},p))}));function u(e,t){var a=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=a.length,r=new Array(l);r[0]=m;var i={};for(var d in t)hasOwnProperty.call(t,d)&&(i[d]=t[d]);i.originalType=e,i.mdxType="string"==typeof e?e:o,r[1]=i;for(var s=2;s<l;s++)r[s]=a[s];return n.createElement.apply(null,r)}return n.createElement.apply(null,a)}m.displayName="MDXCreateElement"},5862:function(e,t,a){a.r(t),a.d(t,{frontMatter:function(){return i},contentTitle:function(){return d},metadata:function(){return s},toc:function(){return p},default:function(){return m}});var n=a(7462),o=a(3366),l=(a(7294),a(3905)),r=["components"],i={sidebar_position:2,description:"Information on all commands included in Advanced Portals, including usage and permissions."},d="Commands",s={unversionedId:"commands",id:"commands",title:"Commands",description:"Information on all commands included in Advanced Portals, including usage and permissions.",source:"@site/docs/commands.md",sourceDirName:".",slug:"/commands",permalink:"/docs/commands",editUrl:"https://github.com/sekwah41/Advanced-Portals/edit/website/docs/commands.md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,description:"Information on all commands included in Advanced Portals, including usage and permissions."},sidebar:"tutorialSidebar",previous:{title:"Tutorial Intro",permalink:"/docs/intro"},next:{title:"Portal Tags",permalink:"/docs/portal-tags"}},p=[{value:"Portal Command",id:"portal-command",children:[{value:"<code>/portal create (tags...)</code>",id:"portal-create-tags",children:[],level:3},{value:"<code>/portal selector</code> or <code>/portal wand</code>",id:"portal-selector-or-portal-wand",children:[],level:3},{value:"<code>/portal portalblock</code>",id:"portal-portalblock",children:[],level:3},{value:"<code>/portal endportalblock</code>",id:"portal-endportalblock",children:[],level:3},{value:"<code>/portal gatewayblock</code>",id:"portal-gatewayblock",children:[],level:3},{value:"<code>/portal disablebeacon (portalname)</code>",id:"portal-disablebeacon-portalname",children:[],level:3},{value:"<code>/portal import</code>",id:"portal-import",children:[],level:3},{value:"<code>/portal langupdate</code>",id:"portal-langupdate",children:[],level:3},{value:"<code>/portal reload</code>",id:"portal-reload",children:[],level:3},{value:"<code>/portal show</code>",id:"portal-show",children:[],level:3},{value:"<code>/portal remove</code>",id:"portal-remove",children:[],level:3},{value:"<code>/portal help</code>",id:"portal-help",children:[],level:3},{value:"<code>/portal version</code>",id:"portal-version",children:[],level:3}],level:2},{value:"Destination Command",id:"destination-command",children:[{value:"<code>/desti create</code>",id:"desti-create",children:[],level:3},{value:"<code>/desti remove</code>",id:"desti-remove",children:[],level:3},{value:"<code>/desti list</code>",id:"desti-list",children:[],level:3},{value:"<code>/desti show</code>",id:"desti-show",children:[],level:3},{value:"<code>/desti tp (desti name)</code>",id:"desti-tp-desti-name",children:[],level:3}],level:2}],c={toc:p};function m(e){var t=e.components,i=(0,o.Z)(e,r);return(0,l.kt)("wrapper",(0,n.Z)({},c,i,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"commands"},"Commands"),(0,l.kt)("div",{className:"admonition admonition-info alert alert--info"},(0,l.kt)("div",{parentName:"div",className:"admonition-heading"},(0,l.kt)("h5",{parentName:"div"},(0,l.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,l.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,l.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))),"info")),(0,l.kt)("div",{parentName:"div",className:"admonition-content"},(0,l.kt)("p",{parentName:"div"},(0,l.kt)("strong",{parentName:"p"},"V2.0.0+ / recode info")),(0,l.kt)("p",{parentName:"div"},"The re-code should detect that you have the old data and create copies in the new format, however you will need to re-do the config."),(0,l.kt)("p",{parentName:"div"},"If the portals to not import for any reason, you can manually trigger the import by running ",(0,l.kt)("inlineCode",{parentName:"p"},"/portals import"),"."),(0,l.kt)("p",{parentName:"div"},"Do not worry. The original data will not be deleted, and you can revert to older versions if you run into problems."))),(0,l.kt)("p",null,"All commands included in Advanced Portals are listed below along with their permissions."),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Note:")," all ",(0,l.kt)("inlineCode",{parentName:"p"},"/portal")," commands can also be used with ",(0,l.kt)("inlineCode",{parentName:"p"},"/advancedportals")," or ",(0,l.kt)("inlineCode",{parentName:"p"},"/aportals")," instead."),(0,l.kt)("p",null,"Same goes for all /destination commands can be used with /desti"),(0,l.kt)("p",null,"Also if you want blocks such as nether portals not to break when being placed you will need to define the portal before placing them. This is so the physics updates know not to mess with vanilla portals being broken or other plugins :)"),(0,l.kt)("h2",{id:"portal-command"},"Portal Command"),(0,l.kt)("p",null,"Usable Alias: ",(0,l.kt)("inlineCode",{parentName:"p"},"/portal")," ",(0,l.kt)("inlineCode",{parentName:"p"},"/ap")," ",(0,l.kt)("inlineCode",{parentName:"p"},"/portals")," ",(0,l.kt)("inlineCode",{parentName:"p"},"/aportal")," ",(0,l.kt)("inlineCode",{parentName:"p"},"/advancedportals")),(0,l.kt)("h3",{id:"portal-create-tags"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal create (tags...)")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.create")),(0,l.kt)("p",null,"This command is used to create a portal. The behaviour of the portal can be determined by the tags given (see list below), but a name must tag must always be given ",(0,l.kt)("inlineCode",{parentName:"p"},"name:some_name_here")),(0,l.kt)("p",null,"As a side note, make sure to check the ",(0,l.kt)("inlineCode",{parentName:"p"},"triggerblock:")," has been set if you are not using nether portal blocks. These are blocks that ",(0,l.kt)("strong",{parentName:"p"},"you need to be INSIDE")," so blocks such as water and even cobwebs will work, but cobblestone will not be a suitable triggerblock."),(0,l.kt)("p",null,"For a list of tags and info, check out the ",(0,l.kt)("a",{parentName:"p",href:"/docs/portal-tags"},"tags page"),"."),(0,l.kt)("h3",{id:"portal-selector-or-portal-wand"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal selector")," or ",(0,l.kt)("inlineCode",{parentName:"h3"},"/portal wand")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.selector")),(0,l.kt)("p",null,"This gives you the mighty portal axe, if UseOnlyServerMadeAxe is true then this one will still work, but the normal iron axe will still be available to be used in survival for admins. (instead of always trying to make portals)"),(0,l.kt)("h3",{id:"portal-portalblock"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal portalblock")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.create")),(0,l.kt)("p",null,"Gives you a portal block that you can build with. (If the rotation is in the wrong place one next to it and then replace it to get the right rotation)"),(0,l.kt)("h3",{id:"portal-endportalblock"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal endportalblock")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.create")),(0,l.kt)("p",null,"Gives you an end portal block that you can build with."),(0,l.kt)("h3",{id:"portal-gatewayblock"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal gatewayblock")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.create")),(0,l.kt)("p",null,"Gives you an end gateway block that you can build with."),(0,l.kt)("h3",{id:"portal-disablebeacon-portalname"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal disablebeacon (portalname)")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.disable_beacon")),(0,l.kt)("p",null,"Disable the end gateway blocks in the area of the portal. This should persist even after the chunk has reloaded."),(0,l.kt)("h3",{id:"portal-import"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal import")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.import")),(0,l.kt)("p",null,"Imports portals and destinations from the old format. This will not overwrite any existing portals and destinations with the same name, however all common config values will be overwritten."),(0,l.kt)("h3",{id:"portal-langupdate"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal langupdate")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.lang_update")),(0,l.kt)("p",null,"Updates the language files with the latest strings. This will not overwrite any custom strings you have added though will add new translation keys to the end of the file."),(0,l.kt)("p",null,"If you want to reset it back to the default file you can enter ",(0,l.kt)("inlineCode",{parentName:"p"},"/portal langupdate overwrite")),(0,l.kt)("h3",{id:"portal-reload"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal reload")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.reload")),(0,l.kt)("p",null,"This will reload all the portal, destination and config data. Though some config values may need a server restart/full plugin reload."),(0,l.kt)("h3",{id:"portal-show"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal show")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.show")),(0,l.kt)("p",null,"This will visualise nearby portals with particles as well as the current selection region."),(0,l.kt)("p",null,(0,l.kt)("img",{alt:"Portal particle visualisation",src:a(7516).Z})),(0,l.kt)("h3",{id:"portal-remove"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal remove")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Permission:")," ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.portal.remove")),(0,l.kt)("p",null,"Enter this command to destroy a portal with a set name. If the argument is left blank, it will destroy the currently selected portal."),(0,l.kt)("h3",{id:"portal-help"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal help")),(0,l.kt)("p",null,"Displays the help message."),(0,l.kt)("h3",{id:"portal-version"},(0,l.kt)("inlineCode",{parentName:"h3"},"/portal version")),(0,l.kt)("p",null,"Returns the current version of the plugin"),(0,l.kt)("h2",{id:"destination-command"},"Destination Command"),(0,l.kt)("p",null,"Usable Alias: ",(0,l.kt)("inlineCode",{parentName:"p"},"/desti")," ",(0,l.kt)("inlineCode",{parentName:"p"},"/destination")),(0,l.kt)("p",null,"Permission (applies to all): ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.desti")),(0,l.kt)("h3",{id:"desti-create"},(0,l.kt)("inlineCode",{parentName:"h3"},"/desti create")),(0,l.kt)("p",null,"Permission: ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.desti.create")),(0,l.kt)("p",null,"This the command creates a new destination with the location data from your player (your player position and direction your facing)."),(0,l.kt)("h3",{id:"desti-remove"},(0,l.kt)("inlineCode",{parentName:"h3"},"/desti remove")),(0,l.kt)("p",null,"Permission: ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.desti.remove")),(0,l.kt)("p",null,"Remove a destination with a specific name. (portals will still attempt to warp to this name but say no destination exists)"),(0,l.kt)("h3",{id:"desti-list"},(0,l.kt)("inlineCode",{parentName:"h3"},"/desti list")),(0,l.kt)("p",null,"Permission: ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.desti.list")),(0,l.kt)("p",null,"A list of created destinations."),(0,l.kt)("h3",{id:"desti-show"},(0,l.kt)("inlineCode",{parentName:"h3"},"/desti show")),(0,l.kt)("p",null,"Permission: ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.desti.show")),(0,l.kt)("p",null,"This will visualise the surrounding destinations with an arrow shaped particle formation. The arrows are roughly positioned at the player head height for the default player size."),(0,l.kt)("p",null,(0,l.kt)("img",{alt:"Arrow shaped particle formation",src:a(6940).Z})),(0,l.kt)("h3",{id:"desti-tp-desti-name"},(0,l.kt)("inlineCode",{parentName:"h3"},"/desti tp (desti name)")),(0,l.kt)("p",null,"Permission: ",(0,l.kt)("inlineCode",{parentName:"p"},"advancedportals.desti.teleport")),(0,l.kt)("p",null,"Teleport to the named destination."))}m.isMDXComponent=!0},6940:function(e,t,a){t.Z=a.p+"assets/images/desti-visualise-be0fb8a2d9b2c4103486e0db9dfb8c8f.png"},7516:function(e,t,a){t.Z=a.p+"assets/images/portal-visualise-e29a4e198f6b795ac9b21ad080061f9b.png"}}]); |