GithubHelp home page GithubHelp logo

hsyyid / polis Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 5.0 1.54 MB

This plugin features Towns, where players can join forces on your server and groups of people can compete against each other.

Home Page: http://negafinity.com

Java 100.00%

polis's People

Contributors

dualspiral avatar hiroku avatar hsyyid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

polis's Issues

Town name change doesn't carry balance?

ver 2.6.3 Create a town, deposit some currency, autoclaim some chunks (have a remaining balance), change name of town, try to claim or autoclaim and message comes back that the town does not have enough funds. Info command shows town with new name as having a balance. Add some funds to new town name, can claim again but only up to the amount of the newly added funds, old funds still show with info, but remain unavailable for claiming.

Item Frames

Items within item frames can be removed, even in SafeZone.

/polis create

Without an argument, the response is:

"Not enough arguments!"
create
^

And then the spew of the whole "Usage" string.

Wouldn't it be a little easier for the user to understand if the message concerning the misuse of the command was specific about what is missing?

Eg., the sub command was create
and the parameters it expected are missing so:

"Town name not specified\n"
"/polis create <town_name>"

Format issues for /polis list

  1. The leader of the town shows the UUID, not the player name.
  2. The Executives, Members, Allies, Enemies lists show "[]" if not set. Prefer to see something more friendly like "not set"

EDIT: Actually, why isn't the creator of the town automatically made the Executive and a Member of the town?

  1. The list is padded with 0. For the first town, it is numbered 01) That's odd for MC. Prefer unpadded or padded with space, not digits.
  2. When hovering over the name of the town, a black translucent window appears with nothing written into the window. Purpose?

[1.10.2] Not Enough Funds to Claim with $9600

My players can claim with $100 - however, this one player could not, even though she had funds in the polis bank - numbered at $9600. I gave her $5000, which she deposited. Then only it worked. Note, she only spent $100 which was normal.

There was no logs, no errors, just the standard 'Not enough funds!' message.

Invincible pokemon bug fixed?

Recently i had lots of reports from my server users saying that pokemon(in pixelmon mod) are not dying in claimed areas when they reach 0HP(happens to both rival's and your pokemon), i was using version 2.6.2 when this started to happen, i wanted to know if this bug is fixed in heigher versions or if you're planning on fixing it in the future, i would really need that bug fixed as fast as posible :/ THX...

PD: Awesome plugin tho ;)

[1.10.2] /polis kick Error

In the latest version of Polis, in 1.10.2, you cannot use /polis kick. It gives a 'no values matching pattern {username} present for player!', even though /polis info says that the player is in the Polis. Of course, the username is well-written.

You can see here that through console you get the same error - which means that it isn't a user error. Also that for some reason I would be able to kick people (when Console is not in polis??).

[Done] [1.10.2] [Request] Limit Polis Claims by Resident Count

As the title implies, could we have a config option where Polis claims can be limited by the number of Residents within a same town? It would be pretty simple; each Resident is worth say 5 chunk-claims (a number which can also be configurable).

That way, Polis Leaders have an incentive to welcome more players, as it allows them to get more space. Note, that limiting the chunk claim is faulty in the later versions, so this would help resolve the issue.

UnClaiming not working

I have an issue when doing /Polis unclaim unclaims the chunk but then doing /Polis info (town) the claim amount has NOT went down and does not allow me to claim anymore if it was max before unclaiming

This was when using /polis adminunclaim but both have the issue

(if that made sense)

[1.10.2] [Request] /polis create Improvement

/polis create <town name>'s feature should be expanded. First, it should claim automatically as the first chunk the one the player is standing in, so as to not have towns without claims. Second, it should set the HQ to be on the first claim of said town, therefore also automatically setting the HQ of the town on creation of the polis.

Of course, then it would simply give the leader of the town the option to move the HQ cost-free.

This way, no superfluous and un-teleportable towns.

Mob spawns, pvp and fire spreads inside a polis

Hello there,
I was wondering if it would be possible to toggle mob spawn, pvp and firespreads through a polis, rather than using a safezone. The server I am admin on has recently switched to polis from nations due to it's likeness to towny, and our network itself being deemed a 'towny' based network. I would love to see this plugin grow and develop to encompass all factors of a protection. That being said, for now I think it would be incredibly beneficial to allow the leader of a polis to toggle the above variables, to allow a more flexible experience. As of now, I can't find any way of doing this outside of safe zones, which are deemed for admin use only. Some suggestions for the commands could be:

  • toggle mob spawns in a polis: /polis toggle mobs
  • toggle pvp in a polis: /polis toggle pvp
  • toggle fire spreads: /polis toggle fire

[1.10.2] /p setleader

Must the other person be online for it to work? I cannot make sense of the syntax - /polis setleader [townname] [username] returns a whole string of arguments, saying "Too many arguments!"

If we could have it so they do not need to be online, would be swell. Alternatively, you could also allow for /p leave to work even if you are the Leader of the town, simply by passing the leadership onto the next resident by alphabetical/rank order.

/polis list has error

If the list of towns is zero (ie., no towns have been created), then this command:

/polis list

yields this error:

Error occured while executing command: fromIndex = -10

The epxected response should be a non-error or perhaps "No towns"

Ranks Claiming Feature Request

Would it be possible to only allow leaders/executives to claim? Currently on my server anyone belonging to a town can claim for that town, deposit and withdraw money. Thanks.

SafeZone griefable

Seems the SafeZone i made and claimed for spawn is greifable by players also addzonemobs does not wotk at all.

Costs and other Town issues on plans?

It looks like the configuration for costs is something still in work?

Plans to make creating and claiming for towns cost in-game money?

Taxes collected by server? Per town, per chunk per town? Per chunk per town per member ? etc...
Taxes levied by town on members ?

Merging towns into one town entity?

Breaking a town up into two smaller towns?

Converting a Town into a FreeZone and vice versa?

/help command broken

When using Polis version 1.5

/polis help

yields this:

"Input command help was not a valid subcommand"

and then proceeds to dump the "Usage: /polis .... "

Bug? Maybe.

[1.10.2] [Request] List all Claimed Chunks by Polis

I have had many, many issues with players losing their claimed chunks. Could it be possible to have a backup option where all polis claims are listed in a config file? Or at least, to have the first chunk claimed listed? It would be of mighty help for those polis which do not have an HQ setup.

[1.10.2] [Request] Plot System

So, plot systems are pretty central to any town plugin. Basically, once you create a town, Polis Leaders normally want to dissect that entity into smaller 'parts' so that they can invite people and let them have their own 'part' of the town. These are called plots.

Before getting on with this ground-breaking, Polis-rejuvenating idea, let's define some terms:

  • Polis: a town defined by the /polis create [name] command. Has at least a Polis Leader, an HQ and once claimed chunk.
  • Polis Leader: main administrator of the concerned polis. He has all permissions, except when it concerns the breaking/placing/switching inside a claimed plot.
  • Resident: a player who is part of a Polis. Does not need to own a plot.
  • Plot Owner: a Resident who has claimed/bought a plot. Has the permission to break/place/switch within that claim entity as well as setting its name. Can also change the name of the plot.
  • Trustee: a Resident who has been 'trusted' by a Plot Owner to use the plot he owns. He can break/place/switch within that plot, unless denied by the Plot Owner. Cannot set the plot for sale, or change its name.
  • Outsider: a player who is not part of the concerned Polis. By default, has no permissions within said polis.
  • Plot: a 16x16 claim entity within a Polis, defined by a creation command used by the Polis Leader.
  • Embassy: a plot-type that can be claimed by an Outsider. It will act as a plot for its Owner.
  • Shop: a plot-type that can be claimed by a Resident. It will allow for switching within the plot, but not of opening chests, breaking and placing.

Plots are rather simple. They can be chunks, so 16x16, that the town leader selects by doing (while standing in it) /polis setplot [normal/embassy/shop]. That would then register the plot as whatever type it is, which would have different properties attached depending on said type.

Residents in a town could claim these plots, if the Polis Leader (or the Executives) do /polis setplot forsale/fs {price} (if not precised, the price can defer to a default price set in the Polis config file). They could claim it via a simple /polis plotclaim - if they have the money for it. Once claimed, the plot would confer all permissions to it's owner, and display (upon passing through its perimeter) the name of the owner.

That's mostly the gist of it. Of course, other commands should be added to make the system work, like /polis setplot notforsale/nfs; that can be explained once I get your feedback.

Here's a list of other commands that would be useful;

  • /polis setplot trustee [username] - would allow a plot owner to share the plot with another citizen, allowing the latter to break/switch within the perimeter of the plot.
  • polis setplot perm [trustee/resident/outsider] [break/switch/place] [on/off] - would allow to allow/disallow the permission to break, switch or place to whatever group (trustee would be the people trustee'd in the plot, residents the people in the same polis, and outsiders the people outside of the polis.
  • /polis setplot reset - would reset the plot to a 'non-plot' stage; that is, unnamed, not for sale, and not dissected from the polis.
  • /polis settax plot [normal/embassy/shop] [price] - would set the tax for a normal, embassy or shop plot type.
  • /polis setplot name [name] - would alter the display name of a plot upon crossing the perimeter of a plot.

There's probably more in this, I cannot remember - but that's the gist of it.

Items can grief Polis claims

Polis: v2.6.8
SpongeForge: v1655
Forge: v2044

I've found a few items that will grief Polis claims. If they can't be fixed perhaps creating a list of grief items will help server owners know what to disable. I'm sure there's plenty I have missed.

Vanilla:
TNT - will grief if placed next to claim or if fired into claim

Tinkers' Construct:
EFLN - a throwable TNT, griefs in the same way as TNT

Botania:
Rod of the Shifting Crust - replaces items in a 7x7 area inside claims
Rod of the Terra Firma - flattens land inside claims

[1.10.2] [Request] /polis adminchatspy

As the title implies, is there a way to be able to spy into the polis chats? The command list does not show one. If indeed not, then it is needs to be a feature - or at least, coupled into Nucleus' /socialspy winks .

Method for claiming all chunks within a given area

Could you please add a way of claiming an area of chunks?
It'd make it massively easier for claiming large areas as we wouldn't have to spam chat with "Claimed this chunk for $x"... And it also means it would be a lot quicker.
For example one could mark out the outline of the chunks (somehow) and then run a command to claim all chunks within the outline including the outline itself (this is just an example of how it could be).

Multiplier issue

For some reason, a town that has only one member will have a cap that is the double of the multiplier so because of that, towns with 2 members get no extra claims. For example, if I set the multiplier to 5, towns with only one member will have a cap of 10 (2 x 5) but towns with 2 members will also have a cap of 10 (2 members x 5) and only a town with 3 members will have a bigger cap, which will be 15 (3 members x 5). Same thing happens with a multiplier of 10, if the town has one member its cap is 20 and it will stay 20 even if the town get a second member. Also, the config "maximum number of claims a Polis may have" seems not to work because that config is set to 50 on my server and there is a town with a cap of 60.

[1.10.2] [Request] Better /polis info

c02c2abd47c49eed10f8898e9e5e9d5b

This is, as it stands, the /polis info Memetopia. What I propose, is revamping it - to show more useful and concise information. There would be two different commands - /polis info and /polis admininfo.

/polis info would be used by non-Resident players wishing to learn more about a Polis. It would display the following information:

&6Polis: [Polis Category] &5[Polis Name]
&6Board: &e"[Message]"
&6Leader: &e[Polis Title] [Leader's Username]
&6Executives [Total Count]: &f[Username1], [Username2].
&6Residents [Total Count]: &f[Username1], [Username2].
&2Ally Polis [Total Count]: &a[Polis Name1]
&4Enemy Polis [Total Count]: &c[Polis Name1]

Example:

&6Polis: &5Memetopia
&6Board: &e"Memes can and will resolve world hunger!"
&6Leader: &ePepeGaming
&6Executives [5]: &fA lot of people.
&6Residents [9]: &fEven more people.
&2Ally Polis [0]: &a
&4Enemy Polis [0]: &c

/polis admininfo would be used by Residents (for their own Polis) as well as Administrators to know more than the standard information on a given Polis. It would give the following information:

&6Polis: &5[Polis Name] &6| &f [Claimed Chunks]/[Claimable Chunks]
&6Board: &e"[Message]"
&6First Created: &f[Count]
&6Headquarter: &f[X, Y, Z] &6| &6Outposts [Count]: &f[Outpost Name1], [Outpost Name2].
&6Leader: &e[Leader's Username] &6| Balance: &e[Count]
&6Executives [Total Count]: &f[Username1], [Username2].
&6Residents [Total Count]: &f[Username1], [Username2].
&2Ally Polis [Total Count]: &a[Polis Name1], [Polis Name2].
&4Enemy Polis [Total Count]: &c[Polis Name1], [Polis Name2].

Example:

&6Polis: &5Memetopia &6| &f 20/35
&6Board: &e"Memes can and will resolve world hunger!"
&6First Created: &f64 days ago
&6Headquarter: &f[-37, 64, 100] &6| &6Outposts [2]: &fMesa, CarrotFarm.
&6Leader: &ePepeGaming &6| Balance: &e11000,45$
&6Executives [5]: &fA lot of people.
&6Residents [9]: &fEven more people.
&2Ally Polis [0]: &a
&4Enemy Polis [0]: &c

Of course, certain information here can only be added if the rest of the requests are, but you get the gist. It would be a much more user friendly info command, and actually help solving issues.

SafeZone PVP

I have claimed a SafeZone but players still take damage.

Safe zone

I do /polis adminclaim spawn and it tells me name is unaplicable I've also tried that command with a side size and same thing. Doesn't matter what I do.

Requests: Commands and Config Options

I have several requests for

  • Set cost to create a Polis in the config.
  • Set a server wide tax every 12 or 24 hours to take a defined amount out of all the Polis's if they don't have enough they will be disbanded.
  • Command to rename the Polis
  • Outposts that can be teleported to and come with a configurable cost.
  • Create a plot system like in Towny where a mayor can only allow residents to build in their own plots rather than the town. Plots can be sold, claimed, etc.
  • When creating or disbanding a Polis it will announce "[Player] has created the Polis [Name]" to server.
  • /polis prices command to display how much a polis costs to create, claim and the daily server tax cost.
  • /player command to see join date, the Polis they are in, money balance, etc
  • /polis hq [polis name] to teleport to another Polis, can be turned on/off by mayors or overridden by the polis admin toggle.
  • Basic user polis node that groups up several of the basic polis nodes to prevent adding 5-10 nodes
  • When promoting someone change the message to "[name] has to promoted you to [rank]" or "You have been promoted to [rank] by [name]"
  • Ask for confirmation when disbanding a Polis and notify all users that the Polis has been disbanded.
  • /polis withdraw [amount]
  • max polis name length
  • If a non-resident interacts/breaks within a Polis, it will send a message saying "You cannot do that here"
  • When interacting with a unclaimed area prevent durability loss

Free Land Claims Bug

I installed Polis but did not have my economy plugin fully configured for jobs so I was not ready to release to server, but wanted the players to have some protection. I set max claims to 6 and reduced costs to make a town and to claim to 0. A player claimed 34 chunks. It did not recognize claims when free.

[1.10.2] [Request] Claimed Chunks Must be Adjacent

Title implies it - claims should be adjacent to each other, otherwise makes little sense. Claims that need not be adjacent should be 'outposts' - you can see my other issue on it. This would make claims impossible to lose, and let us managers better control the craziness surrounding Polis activity.

Unclaim disband not working totaly

When you try to remove your town with /polis disband, town is removed from config files but not in the game cache.

This problem is due to this function

Just remove the async task. This fix work proprely on my server ;)

public static void removeClaims(String teamName) { Configs.removeChild(claimsConfig, new Object[] { "claims" }, teamName); Sponge.getScheduler().createTaskBuilder().async().execute(new Runnable(){ @Override public void run() { ClaimCache.unclaimAll(teamName); } }); }

to

public static void removeClaims(String teamName) { Configs.removeChild(claimsConfig, new Object[] { "claims" }, teamName); ClaimCache.unclaimAll(teamName); }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.