Plotsquared Api

Posted : admin On 7/6/2022
  1. Plots Admin Interact Road
  2. Plotsquared Spigot
{ Discord }
By Citymonstret& Empire92 & MBon29 &dordsor21

Simpler alternative to the `/plot setup` command./plot area create <world>:<areaid> <modifiers>/plot area create pos1/plot area create pos2/plot area confirm. An expanded API. Paper extends and improves the Bukkit and Spigot APIs so that you and your developers have more features and functionality at your fingertips. All the meanwhile, Paper retains compatibility with plugins written for Spigot and Bukkit. ArchiveLearn about our API.

  1. Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
  2. PlotSquared Flag API A plot flag is any property that can be assigned to a plot, that will alter its functionality in some way. Most of these are user assignable in-game, or via configuration files (for plot areas).
The last release of this resource here on dev bukkit has just been posted.
Read more about it on our discord server: https://discord.gg/KxkjDVg
PlotSquared version 5 (and higher) has been released as a separate resource here.
  • PlotSquared is a land management plugin and world manager which also comes with several highly configurable world generators. (See images below)
  • You can create plots of land in existing worlds using plot clusters, or you can have a full world of plots.
Plotsquared Api
Conversion to PlotSquared is automated
  • See here for PlotMe conversion.
  • See here for Plotz conversion.
  • Survival servers: We have a 'town' template included with the plugin, or create your own using /plot setup
  • Skyblock: 'skyblock' template included with the plugin
  • Are you a programmer? Use it to manage minigames. Clear arenas async, and manage plots using the plot cluster API.
  • It's also being used on forge servers such as pixelmon.
Fast, scalable and efficient
  • Async plot clearing is more than 800 times faster than PlotMe, among many other performance improvements
  • Works with hundreds of thousands of plots, or monster 2K x 2K custom terrain plots, with many functions built specifically for mass plot management
  • Plot condensation and world trimming can drastically reduce the size of the world on disk
  • Powerful plot analysis and auto clearing mean you can further remove low quality plots
  • Legacy support for Bukkit 1.7 - 1.12, Sponge, and Nukkit (MCPE)
  • Updated support for Bukkit 1.13
  • Support for offline mode servers
  • Community translations for several languages (may be outdated)
Features
  • In built plot downloading + cross server saving and loading + some optional web interfaces
  • Plot swapping / copying and cross world plot moving
  • Plot merging, your own plots or between friends
  • Extensive flag system so you can decide what should be protected on a per world, or per plot basis
  • Plot entry notifications / per plot time / weather / music etc with the flag system
  • Add custom roads to existing maps to make them look nicer
  • Recolor all text easily and configure additional messages however you want
  • Dynamic world border to prevent excessive exploring
  • Mob protection and per plot mob limiting
  • Interactive commands such as plot listing
  • Plot rating, ranking, complexity analysis, and auto clearing calibration
  • Use javascript to add new commands or script simple things like auto merging all plots
  • Plot schematic saving, loading and pasting
  • Per player settings such as plot chat and entry notifications
  • World creation either with multiverse, /plot setup, or manual yml configuration
  • Command recommendation if you mistype something
  • Plot commenting and inboxes
  • World auto trimming which reduces the CPU and disk usage when people explore
  • Pistons and Sand/TNT cannons are properly restricted
  • Per plot redstone settings + plot redstone disablers
  • Optional fast async worldediting
  • WorldEdit (included)/VoxelSniper (with addon) restricted to plots
  • Chunk processing to safely unload dangerous chunks (also processes WorldEdit commands)
  • Component setting (floor, wall, border)
  • Section off areas (e.g. an area for donors) with plot clusters, or add plot clusters to vanilla worlds
  • Use holograms instead of signs if you want (HoloPlots addon)
  • Four tiers of plot allowance: Owner, Helper, Trusted, Denied
  • Plot naming (for teleportation)
  • Configurable command confirmation (e.g. for /plot clear)
  • Manage islands, skyblock, vanilla worlds, or certain sections of worlds as plots
  • A lot of generators, and settings to choose from
  • Installation (includes conversion)
  • Usage (info about various parts of the plugin)
  • Permissions (Basic permission setup)
  • Commands (List and description of all commands)
Addons
Legacy:
  • Plot2Dynmap(Dynmap addon)
  • VoxelSniperRegions(Restrict VoxelSniper)
  • PlotRankup(Plot approval system)
  • PlotUpload (Web interface that supports multiple servers)
  • PlotWebPHP(Web interface that supports plot searching)
  • HoloPlots(Plot holograms)
  • RedstoneClockPreventer2(prevent clocks)
  • CommandBlock (Restrict command blocks to plots)
  • FastAsyncWorldEdit (Async WorldEdit in plots)
  • PlotHider (Make plots invisible)
  • HybridGenerator (This is bundled with PlotSquared.jar and supports plot + road schematics as well as Augmented generation)
  • BiomeGenerator(Natural biomes within plots not a world generator)
  • PlotSquaredSG(Standalone generator not a plot manager)
  • AdvPlots(Non square schematic generation)
  • BasicPlots(Basic generator with 1 plot per chunk)
  • PlotSquaredMG(Large custom terrain gen)
  • IslandPlots(Islands in ocean)
Forks:
  • Chinese version(中国版)
  • SpongeAPI version
  • WorldEdit(Edit blocks within your plot)
  • VoxelSniper (Ranged map editing)
  • TerrainControl(Control over augmented plot worlds)
  • ArmorStandTools(Add armor stands in your plot)
  • BuildersUtilities (Miscellaneous features to help with building)
  • PlotsMenu (GUI for plot commands)
  • Umbaska (Skript addon)
Add roads to your world...
  • Roads can be conveniently added to new or existing worlds
  • Supports larger plot sizes than pure schematic generation
  • (here's the template below /plot template import bridge)
In built plot downloading (no setup required)...
  • Just use /plot download
  • Cross server '/plot save', '/plot load' and '/plot schematic paste url:'
  • See addons above for additional web interfaces
Plot merging...
  • Use commands or enable auto merging
  • Merge plots and build with friends
In game world creation...
  • Use /plot setup
Combine generators; with or without roads...
  • Generate using any generator you want e.g. Normal terrain, Nether, or even TerrainControl
Plots can be anywhere...
  • Plot clusters can go anywhere, and can simply be invisible boundaries if you want.
Actually set the plot biome...
Notifications/Per plot time + weather...
Complete control over plot composition...
  • Default generator bundled with PlotSquared
  • Percentage control over plot components and blocks
The comment section is disabled. If you need support or want to follow our development, join our discord.

About Project

Created Sep 24, 2014
Total Downloads153,197

Categories

Members

Plot y versus x as lines and/or markers.

Call signatures:

The coordinates of the points or line nodes are given by x, y.

The optional parameter fmt is a convenient way for defining basicformatting like color, marker and linestyle. It's a shortcut stringnotation described in the Notes section below.

You can use Line2D properties as keyword arguments for morecontrol on the appearance. Line properties and fmt can be mixed.The following two calls yield identical results:

When conflicting with fmt, keyword arguments take precedence.

Plotting labelled data

There's a convenient way for plotting objects with labelled data (i.e.data that can be accessed by index obj['y']). Instead of givingthe data in x and y, you can provide the object in the dataparameter and just give the labels for x and y:

All indexable objects are supported. This could e.g. be a dict, apandas.DataFrame or a structured numpy array.

Plotting multiple sets of data

There are various ways to plot multiple sets of data.

  • The most straight forward way is just to call plot multiple times.Example:

  • Alternatively, if your data is already a 2d array, you can pass itdirectly to x, y. A separate data set will be drawn for everycolumn.

    Example: an array a where the first column represents the xvalues and the other columns are the y columns:

  • The third way is to specify multiple sets of [x], y, [fmt]groups:

    In this case, any additional keyword argument applies to alldatasets. Also this syntax cannot be combined with the dataparameter.

By default, each line is assigned a different style specified by a'style cycle'. The fmt and line property parameters are onlynecessary if you want explicit deviations from these defaults.Alternatively, you can also change the style cycle usingrcParams['axes.prop_cycle'] (default: cycler('color',['#1f77b4','#ff7f0e','#2ca02c','#d62728','#9467bd','#8c564b','#e377c2','#7f7f7f','#bcbd22','#17becf'])).

Parameters:
x, yarray-like or scalar

The horizontal / vertical coordinates of the data points.x values are optional and default to range(len(y)).

Commonly, these parameters are 1D arrays.

They can also be scalars, or two-dimensional (in that case, thecolumns represent separate data sets).

These arguments cannot be passed as keywords.

fmtstr, optional

A format string, e.g. 'ro' for red circles. See the Notessection for a full description of the format strings.

Format strings are just an abbreviation for quickly settingbasic line properties. All of these and more can also becontrolled by keyword arguments.

This argument cannot be passed as keyword.

dataindexable object, optional

An object with labelled data. If given, provide the label names toplot in x and y.

Note

Technically there's a slight ambiguity in calls where thesecond label is a valid fmt. plot('n','o',data=obj)could be plt(x,y) or plt(y,fmt). In such cases,the former interpretation is chosen, but a warning is issued.You may suppress the warning by adding an empty format stringplot('n','o',',data=obj).

Returns:
list of Line2D

A list of lines representing the plotted data.

Other Parameters:
scalex, scaleybool, default: True

These parameters determine if the view limits are adapted to thedata limits. The values are passed on to autoscale_view.

**kwargsLine2D properties, optional

kwargs are used to specify properties like a line label (forauto legends), linewidth, antialiasing, marker face color.Example:

If you make multiple lines with one plot call, the kwargsapply to all those lines.

Here is a list of available Line2D properties:

PropertyDescription
agg_filtera filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alphafloat or None
animatedbool
antialiased or aabool
clip_boxBbox
clip_onbool
clip_pathPatch or (Path, Transform) or None
color or ccolor
containsunknown
dash_capstyle{'butt', 'round', 'projecting'}
dash_joinstyle{'miter', 'round', 'bevel'}
dashessequence of floats (on/off ink in points) or (None, None)
data(2, N) array or two 1D arrays
drawstyle or ds{'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'}, default: 'default'
figureFigure
fillstyle{'full', 'left', 'right', 'bottom', 'top', 'none'}
gidstr
in_layoutbool
labelobject
linestyle or ls{'-', '--', '-.', ':', ', (offset, on-off-seq), ...}
linewidth or lwfloat
markermarker style string, Path or MarkerStyle
markeredgecolor or meccolor
markeredgewidth or mewfloat
markerfacecolor or mfccolor
markerfacecoloralt or mfcaltcolor
markersize or msfloat
markeveryNone or int or (int, int) or slice or List[int] or float or (float, float) or List[bool]
path_effectsAbstractPathEffect
pickerunknown
pickradiusfloat
rasterizedbool or None
sketch_params(scale: float, length: float, randomness: float)
snapbool or None
solid_capstyle{'butt', 'round', 'projecting'}
solid_joinstyle{'miter', 'round', 'bevel'}
transformmatplotlib.transforms.Transform
urlstr
visiblebool
xdata1D array
ydata1D array
zorderfloat

See also

scatter
XY scatter plot with markers of varying size and/or color ( sometimes also called bubble chart).

Notes

Format Strings

A format string consists of a part for color, marker and line:

Each of them is optional. If not provided, the value from the stylecycle is used. Exception: If line is given, but no marker,the data will be a line without markers.

Other combinations such as [color][marker][line] are alsosupported, but note that their parsing may be ambiguous.

Markers

characterdescription
'.'point marker
','pixel marker
'o'circle marker
'v'triangle_down marker
'^'triangle_up marker
'<'triangle_left marker
'>'triangle_right marker
'1'tri_down marker
'2'tri_up marker
'3'tri_left marker
'4'tri_right marker
's'square marker
'p'pentagon marker
'*'star marker
'h'hexagon1 marker
'H'hexagon2 marker
'+'plus marker
'x'x marker
'D'diamond marker
'd'thin_diamond marker
' 'vline marker
'_'hline marker

Line Styles

characterdescription
'-'solid line style
'--'dashed line style
'-.'dash-dot line style
':'dotted line style

Example format strings:

Colors

The supported color abbreviations are the single letter codes

charactercolor
'b'blue
'g'green
'r'red
'c'cyan
'm'magenta
'y'yellow
'k'black
'w'white

Plots Admin Interact Road

and the 'CN' colors that index into the default property cycle.

Plotsquared Spigot

If the color is the only part of the format string, you canadditionally use any matplotlib.colors spec, e.g. full names('green') or hex strings ('#008000').