YellowPages

286 Downloads

Have you ever hosted a server with a shop world and wished more people would buy/sell from those player shops? Well If you have then this is for you. Players can create a page for their shop and when another player want to sell something of theirs they can search through the entries for people who are looking to buy it.


Commands

/yp - Brings up the help for the plugin
/yp add [Name] - Adds an entry to the plugin
/yp desc [Name] [New Description] - Changes the description of the entry [Name].
/yp contact [Name] [New Contact] - Changes the contact method of the entry [Name].
/yp move [Name]- Moves the location of the entry to your current position and world.
/yp remove [Name] - Removes the entry called [Name].
/yp find {-d} [Search Criteria] - Searches through all of the entries for matches to your search criteria. The -d flag will only search through the dimension that you are standing in.
/yp results [page number] - Shows you the results of your search/your entries after doing /yp find or /yp mine.
/yp mine - Allows you to view all of your entries using /yp results
/ypreload - Reloads the config file


Permissions

  • yellowpages - Gives all the commands except ypreload (Everyone has this by default)
  • yellowpages.reload - Gives ypreload (OPs have it by default)
  • yellowpages.* - Gives all yellowpages commands


Configuration

Because of the high potential to abuse I have decided to include a config.
The field max in the config adjusts the maximum number of entries a user can make.


Since this project is Open Source you can find the source here