mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-22 15:22:00 +01:00
1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
"use strict";(self.webpackChunkadvanced_portals_docs=self.webpackChunkadvanced_portals_docs||[]).push([[795],{3905:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return u}});var o=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=o.createContext({}),c=function(e){var t=o.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},s=function(e){var t=c(e.components);return o.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},m=o.forwardRef((function(e,t){var n=e.components,r=e.mdxType,a=e.originalType,l=e.parentName,s=d(e,["components","mdxType","originalType","parentName"]),m=c(n),u=r,f=m["".concat(l,".").concat(u)]||m[u]||p[u]||a;return n?o.createElement(f,i(i({ref:t},s),{},{components:n})):o.createElement(f,i({ref:t},s))}));function u(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var a=n.length,i=new Array(a);i[0]=m;var d={};for(var l in t)hasOwnProperty.call(t,l)&&(d[l]=t[l]);d.originalType=e,d.mdxType="string"==typeof e?e:r,i[1]=d;for(var c=2;c<a;c++)i[c]=n[c];return o.createElement.apply(null,i)}return o.createElement.apply(null,n)}m.displayName="MDXCreateElement"},8805:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return d},contentTitle:function(){return l},metadata:function(){return c},toc:function(){return s},default:function(){return m}});var o=n(7462),r=n(3366),a=(n(7294),n(3905)),i=["components"],d={sidebar_position:3,description:"Information on the optional WorldEdit integration in Advanced Portals, including usage and configuration"},l="WorldEdit Integration",c={unversionedId:"worldedit",id:"worldedit",title:"WorldEdit Integration",description:"Information on the optional WorldEdit integration in Advanced Portals, including usage and configuration",source:"@site/docs/worldedit.md",sourceDirName:".",slug:"/worldedit",permalink:"/docs/worldedit",editUrl:"https://github.com/sekwah41/Advanced-Portals/edit/website/docs/worldedit.md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,description:"Information on the optional WorldEdit integration in Advanced Portals, including usage and configuration"},sidebar:"tutorialSidebar",previous:{title:"Portal Tags",permalink:"/docs/portal-tags"}},s=[{value:"Additional Commands",id:"additional-commands",children:[{value:"Select Portal as WorldEdit selection",id:"select-portal-as-worldedit-selection",children:[],level:3}],level:2}],p={toc:s};function m(e){var t=e.components,n=(0,r.Z)(e,i);return(0,a.kt)("wrapper",(0,o.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"worldedit-integration"},"WorldEdit Integration"),(0,a.kt)("div",{className:"admonition admonition-info alert alert--info"},(0,a.kt)("div",{parentName:"div",className:"admonition-heading"},(0,a.kt)("h5",{parentName:"div"},(0,a.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,a.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,a.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,a.kt)("div",{parentName:"div",className:"admonition-content"},(0,a.kt)("p",{parentName:"div"},(0,a.kt)("strong",{parentName:"p"},"V2.0.0+ / recode info")),(0,a.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,a.kt)("p",{parentName:"div"},"If the portals to not import for any reason, you can manually trigger the import by running ",(0,a.kt)("inlineCode",{parentName:"p"},"/portals import"),"."),(0,a.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,a.kt)("div",{className:"admonition admonition-warning alert alert--danger"},(0,a.kt)("div",{parentName:"div",className:"admonition-heading"},(0,a.kt)("h5",{parentName:"div"},(0,a.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,a.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",viewBox:"0 0 12 16"},(0,a.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))),"warning")),(0,a.kt)("div",{parentName:"div",className:"admonition-content"},(0,a.kt)("p",{parentName:"div"},"This feature is completely missing from the recode currently, and will be added back in the future."))),(0,a.kt)("p",null,"You can configure AdvancedPortals to use WorldEdit instead of the Selection Tool from AdvancedPortals."),(0,a.kt)("p",null,"To enable the integration (add and) set the config option ",(0,a.kt)("inlineCode",{parentName:"p"},"WorldEditIntegration"),' to "true".'),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"This will disable the commands ",(0,a.kt)("inlineCode",{parentName:"strong"},"/portal wand")," (or ",(0,a.kt)("inlineCode",{parentName:"strong"},"/portal selector"),") and will use cuboid selections from WorldEdit instead.")),(0,a.kt)("h2",{id:"additional-commands"},"Additional Commands"),(0,a.kt)("h3",{id:"select-portal-as-worldedit-selection"},"Select Portal as WorldEdit selection"),(0,a.kt)("p",null,"You can use ",(0,a.kt)("inlineCode",{parentName:"p"},"/portal we-selection")," with a portal name to select the portal as cuboid worldedit selection.\nThis command becomes available when WorldEdit is installed."))}m.isMDXComponent=!0}}]); |